Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core(tap-targets): add stylesheet over protocol #12634

Merged
merged 4 commits into from
Jun 10, 2021
Merged

Conversation

adamraine
Copy link
Member

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