#james-voracio-commerce_stripejs-cookies-console-errors

1 messages ¡ Page 1 of 1 (latest)

wheat swallowBOT
#

👋 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.

eager dock
#

Hello

wheat swallowBOT
hard hedge
#

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?

eager dock
#

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

covert fern
#

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?

eager dock
#

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...

eager dock
#

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

covert fern
#

Got it. For clarification, how exactly did you fix the main issue? By disabling CookieBot entirely or something else?

eager dock
#

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

covert fern
#

Got it, thanks for sharing those details!

eager dock
#

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

covert fern
eager dock
#

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

covert fern
#

Yes, I believe so

wheat swallowBOT