mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:23:25 +08:00
CSP: include worker_src
`worker_src` fallbacks to `script_src`, but #6611 made `script_src` too restrict to include the service worker.
This commit is contained in:
parent
5f754b43f1
commit
6fba8b8aef
|
@ -37,6 +37,7 @@ class ContentSecurityPolicy
|
|||
@request = request
|
||||
@directives = {
|
||||
script_src: script_src,
|
||||
worker_src: [:self],
|
||||
}
|
||||
|
||||
@directives[:report_uri] = path('/csp_reports') if SiteSetting.content_security_policy_collect_reports
|
||||
|
|
Loading…
Reference in New Issue
Block a user