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

[Warning Fix] Addition of single quote around unsafe_inline to avoid it being considered as url. #242

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bhennesAdv
Copy link

Hello,

I encountered this warning on Mozilla Firefox. The console warning is just spammed with the same message (Magento 2.4.5).
Here the message on a french browser :
Content Security Policy: https://unsafe-inline/ a été interprété comme un nom d’hôte et non comme un mot-clé. S’il s’agissait vraiment d’un mot-clé, utilisez 'unsafe-inline' (entouré d’apostrophes)

Basically, it reports that unsafe-inline without single quote is considered as host name.
Adding those single quotes remove the message in the console.

Regards,

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

Successfully merging this pull request may close these issues.

1 participant