mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Fix quoting of 'none' in CSP header
The keyword 'none' must be surrounded by single quotes. Regression introduced by #2168.
This commit is contained in:
parent
e6bdcff0dd
commit
5a8825d016
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ before_all do |env|
|
|||
if env.request.resource.starts_with?("/embed")
|
||||
frame_ancestors = "'self' http: https:"
|
||||
else
|
||||
frame_ancestors = "none"
|
||||
frame_ancestors = "'none'"
|
||||
end
|
||||
|
||||
# TODO: Remove style-src's 'unsafe-inline', requires to remove all
|
||||
|
|
Loading…
Reference in a new issue