Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
mastodon
Commits
aafbc82d
Unverified
Commit
aafbc82d
authored
2 years ago
by
prplecake
Committed by
GitHub
2 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Add "unsafe-eval" to script-src CSP (#18817)
parent
eebbc543
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
config/initializers/content_security_policy.rb
+1
-1
config/initializers/content_security_policy.rb
with
1 addition
and
1 deletion
+1
-1
config/initializers/content_security_policy.rb
+
1
-
1
View file @
aafbc82d
...
...
@@ -36,7 +36,7 @@ Rails.application.config.content_security_policy do |p|
p
.
worker_src
:self
,
:blob
,
assets_host
else
p
.
connect_src
:self
,
:data
,
:blob
,
assets_host
,
media_host
,
Rails
.
configuration
.
x
.
streaming_api_base_url
p
.
script_src
:self
,
assets_host
p
.
script_src
:self
,
assets_host
,
:unsafe_eval
p
.
child_src
:self
,
:blob
,
assets_host
p
.
worker_src
:self
,
:blob
,
assets_host
end
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets