Skip to content

Conversation

@adamraine
Copy link
Contributor

Fixes #11862

Adding the rule using the protocol will create a stylesheet that is not blocked by the CSP.

@adamraine adamraine requested a review from a team as a code owner June 8, 2021 22:15
@adamraine adamraine requested review from connorjclark and removed request for a team June 8, 2021 22:15
@google-cla google-cla bot added the cla: yes label Jun 8, 2021
@paulirish
Copy link
Member

A while ago I tried my hand at this one too..

In a8ccf43#diff-f7413d21bc368146015daff93b9cc57b3f83116df7c9cc3ebc716fa8a62b143e I found that using Constructable Stylesheets avoided CSP.. but... IMO it worked because things are underspecified. (CS seem to be a CSP bypass)

but regardless.. it was a gross fix and I much prefer this CDP approach instead. :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tap-targets causes CSP violation by injecting style sheet

4 participants