mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-06-28 01:48:26 +00:00
feat(dev): add option to disable CSP (for development purposes only)
This commit is contained in:
parent
7fcee35cb1
commit
d8ecfd9c04
@ -62,7 +62,7 @@ module Invidious::Routes::BeforeAll
|
||||
"child-src 'self' blob:",
|
||||
"frame-src 'self'",
|
||||
"frame-ancestors " + frame_ancestors,
|
||||
}.join("; ")
|
||||
}.join("; ") if CONFIG.csp
|
||||
|
||||
env.response.headers["Referrer-Policy"] = "same-origin"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user