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 issue occurs #170

Open
tortuch611 opened this issue Jan 31, 2025 · 2 comments
Open

CSP issue occurs #170

tortuch611 opened this issue Jan 31, 2025 · 2 comments

Comments

@tortuch611
Copy link

tortuch611 commented Jan 31, 2025

This is external SVG file which contains style, but angular-svg-icon doesn't handle csp error for this.

Image

@czeckd
Copy link
Owner

czeckd commented Jan 31, 2025

I suspect it's a browser/security issue with style in SVGs, which is beyond the scope of this component. You might need a custom Content Security Policy header for SVGs to allow this. Do a web search for "svg style csp" for some ideas. Or, another option may be to remove the style from the SVG and apply it with the Angular app.

@tortuch611
Copy link
Author

yes, I tried to find it, but couldn't get any solution for that.

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