#james-voracio-commerce_stripejs-cookies-console-errors
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1434921947510214666
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
Hi, can you share more details please? That does not appear to be an error I've seen before.
How can I reoplicate this on my end?
Hi, I think we've found something, we just managed to replicate using an Opera browser
We have managed to get the form to hand in Opera and we see this error in console...
The resource https://js.stripe.com/v3/ was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate as value and it is preloaded intentionally.
It seems that this may be related to CookieBot as it seems that has modified the script src
Hi there, taking over for @hard hedge as they had to step away
I'm not familiar with CookieBot. It sounds like you need to investigate that first to see if something changed recently?
Hi, yes its def caused by CookieBot, we just turned off Cookiebot and now the form shows correctly
Its strange as this only started a few days ago, we are investigating...
Ok we fixed that main issue.
However, Console does still show an error which you could easily replicate, it stems from pay.js
[Violation] Permissions policy violation: payment is not allowed in this document.
The line of code in pay.js is referring to Google Pay JS
Got it. For clarification, how exactly did you fix the main issue? By disabling CookieBot entirely or something else?
We fixed by adding data-cookieconsent="ignore" to the stripe js call
We think cookiebot changing the script slightly would cause a slight delay, which in some browsers causes a fail
Got it, thanks for sharing those details!
No worries, good for you to have a reference of that
So, the other console error, the form still draws correctly, but looks messy in console
As far as the pay.js error, I did find another case where someone saw the same error. The issue was resolved by setting the Permissions Policy, but I'm not sure if the exact same thing in your case (this one may have been specific to iframes)
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Permissions-Policy
OK, so you think we should add this to the main document itself? We can give that a try thanks - I'm pretty sure this didn't used to error, its been a while since we've worked on our Stripe integration
Yes, I believe so