Refused to load the script 'https://js.stripe.com/v3/' because it violates the following Content Security Policy directi
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Refused to load the script 'https://js.stripe.com/v3/' because it violates the following Content Security Policy directi
Hi, I tried to use the Stripe payment gateway but I got this error while checkout in the console. How to resolve this?
When I see the source code I noticed this:
I guess it won't allow stripe so any clues?
When I see the source code I noticed this:
Code: Select all
<meta http-equiv="Content-Security-Policy" content="base-uri 'self'; default-src 'self' 'nonce-5xWW/yrW/7wM2G9eaucecQ=='; style-src 'unsafe-inline' 'self'; img-src 'self' data: https://aimeos.org; frame-src https://www.youtube.com https://player.vimeo.com">
Re: Refused to load the script 'https://js.stripe.com/v3/' because it violates the following Content Security Policy dir
Please copy the Aimeos base.blade.php template to your ./resources/views/vendor/shop/ directory and change the CSP directive accordingly. Read also:
https://aimeos.org/docs/latest/laravel/ ... ity-policy
https://aimeos.org/docs/latest/laravel/ ... ity-policy
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Refused to load the script 'https://js.stripe.com/v3/' because it violates the following Content Security Policy dir
Thank you the environment was set to I just set to and this error got disappeared
Code: Select all
local
Code: Select all
production
Re: Refused to load the script 'https://js.stripe.com/v3/' because it violates the following Content Security Policy dir
It should be the other way round and it's fixed here:
https://github.com/aimeos/aimeos-larave ... e6a783c3ed
The next release will contain the fix and then, you will get the error in non-debug mode if you don't adapt the CSP rule.
https://github.com/aimeos/aimeos-larave ... e6a783c3ed
The next release will contain the fix and then, you will get the error in non-debug mode if you don't adapt the CSP rule.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star