feat(dev): add option to disable CSP (for development purposes only)
This commit is contained in:
parent
7fcee35cb1
commit
d8ecfd9c04
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue