Update content-security-policy to be more explicit (#1109)
This commit is contained in:
parent
dabe5fa899
commit
05e213674c
@ -71,7 +71,7 @@
|
|||||||
"pages": [
|
"pages": [
|
||||||
"bg/template-renderer.html"
|
"bg/template-renderer.html"
|
||||||
],
|
],
|
||||||
"content_security_policy": "sandbox allow-scripts; script-src 'self' 'unsafe-eval'; object-src 'self'"
|
"content_security_policy": "sandbox allow-scripts; default-src 'self'; script-src 'self' 'unsafe-eval'"
|
||||||
},
|
},
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"<all_urls>",
|
"<all_urls>",
|
||||||
@ -103,7 +103,7 @@
|
|||||||
"fg/float.html",
|
"fg/float.html",
|
||||||
"bg/template-renderer.html"
|
"bg/template-renderer.html"
|
||||||
],
|
],
|
||||||
"content_security_policy": "script-src 'self'; object-src 'self'"
|
"content_security_policy": "default-src 'self'; style-src 'self' 'unsafe-inline'; media-src *; connect-src *"
|
||||||
},
|
},
|
||||||
"variants": [
|
"variants": [
|
||||||
{
|
{
|
||||||
@ -146,7 +146,7 @@
|
|||||||
{
|
{
|
||||||
"action": "set",
|
"action": "set",
|
||||||
"path": ["content_security_policy"],
|
"path": ["content_security_policy"],
|
||||||
"value": "script-src 'self' 'unsafe-eval'; object-src 'self'"
|
"value": "default-src 'self'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; connect-src *"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"action": "set",
|
"action": "set",
|
||||||
|
@ -70,7 +70,7 @@
|
|||||||
"pages": [
|
"pages": [
|
||||||
"bg/template-renderer.html"
|
"bg/template-renderer.html"
|
||||||
],
|
],
|
||||||
"content_security_policy": "sandbox allow-scripts; script-src 'self' 'unsafe-eval'; object-src 'self'"
|
"content_security_policy": "sandbox allow-scripts; default-src 'self'; script-src 'self' 'unsafe-eval'"
|
||||||
},
|
},
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"<all_urls>",
|
"<all_urls>",
|
||||||
@ -102,5 +102,5 @@
|
|||||||
"fg/float.html",
|
"fg/float.html",
|
||||||
"bg/template-renderer.html"
|
"bg/template-renderer.html"
|
||||||
],
|
],
|
||||||
"content_security_policy": "script-src 'self'; object-src 'self'"
|
"content_security_policy": "default-src 'self'; style-src 'self' 'unsafe-inline'; media-src *; connect-src *"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user