New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 880816 link

Starred by 7 users

Issue metadata

Status: Started
Owner:
Last visit > 30 days ago
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Feature



Sign in to add a comment

CSP: `script-src-attr`, `script-src-elem`, `style-src-attr`, `style-src-elem` directives

Project Member Reported by andypaicu@chromium.org, Sep 5

Issue description

These 4 new directives provide the functionality of the script/style directive but with more granularity, applying to elements or attributes.
 
Description: Show this description
Status: Started (was: Assigned)
Definitely need to add to this intent 'script-src-eval', otherwise we will not get full-featured set. Reason why hashed-handlers will be allowed, but hashed-eval not?
There has been no request that I'm aware for hashing eval strings, whereas there have been requests for hashing event handlers.

That's why there is no consideration for `script-src-eval` or something of that nature.
A very big number of publishers definitely need 'script-src-eval' directive. Today millions of pages with Google Ads can't be protected with CSP. 

As a result, significant losses for publishers and millions of profits to those who substitute content. Try to use CSP on any page with Google Ads and you will see that this is impossible without unsafe-inline, unsafe-eval, etc. 

Almost all big websites today have Google Ads and CSP is not working in full. Do you imagine how you can change the game? 

Comment 6 by a...@google.com, Yesterday (36 hours ago)

Cc: a...@google.com

Sign in to add a comment