-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Twitch iframes are filtered out by sanitizer #2897
Comments
Am I right to assume the change should be made in of these files? telescope/src/backend/web/app.js Lines 23 to 29 in f20ec06
or telescope/src/api/planet/src/index.js Lines 14 to 19 in f20ec06
|
That's for the front-end, we also need to fix https://github.com/Seneca-CDOT/telescope/blob/master/src/backend/utils/html/sanitize.js#L50-L57 in the backend. And the parser service would need this too. |
We also need to update the tests as well to ensure that this is working as intended. This is where they should go https://github.com/Seneca-CDOT/telescope/blob/master/test/sanitize-html.test.js |
Taking this |
I'm seeing this for a second time, still unfixed. @HyperTHD do you have time to work on this, or should we give to someone else? |
Been pretty busy lately, but got some time. I'll have a PR up today hopefully for this |
Won't it need to re-index for this to get applied to that post? |
@humphd oh, I forgot about that, let me make the changes on staging to see if it solves the issue |
I think this is probably related to #2306 , I see the same behaviour in both cases. |
Could be because the hostname is supposed to be |
This is Alex's twitch iframe <iframe src="https://player.twitch.tv/?video=1303803789&parent=dev.to&autoplay=false" allowfullscreen="true" scrolling="no" width="710" height="399" frameborder="0">
</iframe> |
I tested that hostname, still not viewing it locally |
@humphd yes, all the feeds were re-indexed on staging, but the issue persists. |
@HyperTHD I'd say that it's the sanitizer using |
I'm not able to see any changes when switching it out, but I can put up a PR to fix this, and hopefully re-indexing on staging will fix that |
We need to update the sanitizer to allow the twitch iframe origin.
The text was updated successfully, but these errors were encountered: