Open
Bug 1580514
Opened 5 years ago
Updated 2 years ago
script-src CSP blocks eval and new Function
Categories
(DevTools :: Console, defect, P3)
DevTools
Console
Tracking
(Not tracked)
NEW
People
(Reporter: pbro, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: parity-chrome)
Steps:
- Open this page in Firefox: https://csp-devtools.glitch.me/
- This page defines a CSP for
script-src
- Open the console and try executing the following lines:
eval("window")
var sum = new Function('a', 'b', 'return a + b');
Both of these get blocked by script-src
. The error message is:
Content Security Policy: The page’s settings blocked the loading of a resource at eval (“script-src”)
This does not happen in Chrome.
Updated•5 years ago
|
Updated•5 years ago
|
Priority: -- → P3
Updated•5 years ago
|
Updated•4 years ago
|
Comment 2•3 years ago
|
||
I'm not working in this area anymore. Taking myself off the bug to make it clear that somebody else can pick it up.
Assignee: bwerth → nobody
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•