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

CSP #118

Open
d65yan opened this issue Jun 25, 2020 · 5 comments
Open

CSP #118

d65yan opened this issue Jun 25, 2020 · 5 comments

Comments

@d65yan
Copy link

d65yan commented Jun 25, 2020

Hello All.
This is more of a question and maybe a request
Is it possible not to have link-initialize.js concat a random number to link-stylesheet-test- by adding. a random number it makes CSP throw errors and blocks the insertion.
Sometimes eval unsafe or nonce are not an option. Would it be possible to allow for the ids to be provided by through link config?

thank you

@skylarmb
Copy link
Contributor

skylarmb commented Sep 15, 2020

hi @d65yan how does removing the random number in the ID of the element it creates solve this? Wouldn't it be subject to the same style-src 'unsafe-inline' CSP either way? Ah! I see! You probably want to use use style-src-elem with a hash instead right, but the contents of the <style> tag changes.... got it! This is a resonable request.

@seromenho
Copy link

Something like this is also required for the nonce alternative.

@bradleyneumaier
Copy link

Bumping this since the addition of the random number to link-stylesheet-test- also forces me to set style-src-elem as unsafe-inline instead of being able to use a hash

@MehdiSv
Copy link

MehdiSv commented May 11, 2023

Any news on this? 🙏

@gfrntz
Copy link

gfrntz commented Apr 11, 2024

Any updates?

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

No branches or pull requests

6 participants