module-braintree-magento2 icon indicating copy to clipboard operation
module-braintree-magento2 copied to clipboard

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

Open bhennesAdv opened this issue 2 years ago • 0 comments

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,

bhennesAdv avatar Jan 10 '23 17:01 bhennesAdv