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

cspscript for encore_entry_script_tags and cspstyle for encore_entry_link_tags #314

Open
thomas2411 opened this issue Aug 30, 2022 · 2 comments

Comments

@thomas2411
Copy link

cspscript and cspstyle works only for one script at a time. Both encore_entry_script_tags and encore_entry_link_tags generate multiple <script> and <style> tags by design. Do you think of any solution that could handle this situation? The only thing I can imagine is to add a new tags cspscripts and cspstyle to NelmioSecurityBundle which will handle multiple tags in a loop.
What do you think about it?

@sebbio
Copy link

sebbio commented Apr 5, 2024

Any idea?

@sebbio
Copy link

sebbio commented Apr 5, 2024

I make like this and work fine:
{{ encore_entry_link_tags('backend', null, '_default', {'nonce': csp_nonce('style')}) }}

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