plaid / react-plaid-link

React bindings for Plaid Link
https://plaid.github.io/react-plaid-link
MIT License
267 stars 149 forks source link

CSP #118

Open d65yan opened 4 years ago

d65yan commented 4 years ago

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 commented 3 years ago

~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 commented 3 years ago

Something like this is also required for the nonce alternative.

bradleyneumaier commented 1 year ago

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 commented 1 year ago

Any news on this? 🙏

gfrntz commented 4 months ago

Any updates?