-
-
Notifications
You must be signed in to change notification settings - Fork 90
Open
Description
Hi
I see you now support PHP 8.3 which is great. I've upgraded our site to the latest M2 2.4.7 and now get this error in the browser console when I try to open the checkout.
Refused to execute inline script because it violates the following Content Security Policy directive on checkout page
Either the 'unsafe-inline' keyword, a hash ('sha256-aGdEGNntkwDDS/kwkeBvz2jvwf80p/Gtwq2qyspyyGA='), or a nonce ('nonce-...') is required to enable inline execution.
Looks to be created by below. Removing this from composer.json fixed this error
<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
</script>
Looks like it would be best to load the JS from a file rather than inline it as that provides better security for the site.
Disabling the module fixes the error so I'm pretty sure it's coming from this module.
Metadata
Metadata
Assignees
Labels
No labels