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

Feature Request: Support for Raw SVG in iconSprite Configuration #2946

Open
szerletics-star opened this issue Jan 10, 2024 · 0 comments
Open

Comments

@szerletics-star
Copy link

Enhancing the functionality of the iconSprite configuration in the library to accept not only the path to the icon as a string but also the entire SVG content as a string would be highly beneficial.

This adjustment is sought due to challenges posed by Content Security Policy (CSP) when utilizing the library mediaelement.js within a Vue component library. Currently, we have configured the iconSprite directly within our source code. This configuration is then utilized across various frontends through npm installation. However, this setup triggers CSP errors in the frontends.

In light of these issues, introducing the capability for the library to handle raw SVG content directly would simplify the integration process and mitigate CSP-related problems.

Is it feasible to explore the development of such a feature? Your insights and collaboration on this matter would be greatly appreciated.

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

1 participant