-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Bug] Content Security Policy violation when trying to embed in a local HTML file #4448
Comments
Why are you not using the "iframe" element from HTML?
|
The same error occurs. I don't think it matters which type of element is used to embed. I think the problem is because the embedded |
The CSP is here, feel free to submit a PR: https://github.com/iv-org/invidious/blob/master/src/invidious/routes/before_all.cr#L33! |
Should I just add |
Please see here if you want to test if it works: https://docs.invidious.io/installation/#docker-compose-method-development |
The PR is up, however I still can't say for sure whether this works or not. The reason is that if I run Invidious locally, then embedding in a local HTML file works even without the change. This is true both when accessing it on the same machine or from other devices on the same LAN. |
Describe the bug
Logs
Additional context
The specific Invidious instance doesn't seem to matter, and also the behaviour seems the same in all Web browsers (e.g. Chromium, Firefox, Palemoon, etc.).
YouTube itself has no problems with embedding videos, and also Piped, the other YouTube alternative viewer, embeds with no issues this way.
The text was updated successfully, but these errors were encountered: