Skip to content
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

routes: Allow embedding videos in local HTML files (fixes #4448) #4450

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Feb 24, 2024

  1. routes: Allow embedding videos in local HTML files (fixes iv-org#4448)

    The current Content Security Policy does not allow to embed videos
    inside local HTML files which are viewed in the browser via the file
    protocol. This commit adds the file protocol to the allowed frame
    ancestors, so that the embedded videos load correctly in local HTML
    files.
    
    This behaviour is consistent which how the official YouTube website
    allows to embed videos from itself.
    
    Signed-off-by: Tomasz Wilczyński <twilczynski@naver.com>
    tomasz1986 committed Feb 24, 2024
    Configuration menu
    Copy the full SHA
    4adb4c0 View commit details
    Browse the repository at this point in the history