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

Content security Policy "nonce" tag for style element #130

Open
josuevalrob opened this issue Mar 4, 2022 · 3 comments
Open

Content security Policy "nonce" tag for style element #130

josuevalrob opened this issue Mar 4, 2022 · 3 comments

Comments

@josuevalrob
Copy link

josuevalrob commented Mar 4, 2022

I have an style tag in my project.

I want to include some nonce tag for content security policies.

Screenshot 2022-03-04 at 11 07 11

looks like is done here
https://github.com/bl00mber/react-phone-input-2/blob/master/src/style/common/flags.less#L9

I am using material design and this is the current output. (which is good)

Screenshot 2022-03-04 at 11 08 02

Any idea about how do this?

pretty sure if we tweak https://github.com/alexplumb/material-ui-phone-number/blob/master/webpack.config.common.js#L46-L53 with https://webpack.js.org/loaders/style-loader/#attributes we could control it otherwise I don't see any chance

@vishalshrm539
Copy link

@josuevalrob Did you get a solution for it?

@josuevalrob
Copy link
Author

josuevalrob commented Oct 4, 2024 via email

@vishalshrm539
Copy link

@josuevalrob Can't we override the "flag" class's styles and change the background-image property to load the image from our own content server?

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

No branches or pull requests

2 participants