#levanto_api

1 messages ยท Page 1 of 1 (latest)

heavy egretBOT
#

๐Ÿ‘‹ 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/1220059398043471963

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

pale oakBOT
unreal monolith
#

Hi, that request you shared to create the Checkout Session succeeded. Can you confirm exactly when you're seeing this error? At what stage are you seeing this issue?

hexed nebula
#

sorry, I put the last request on the log because it is a mandatory field, but I believe the error is before a request is sent

unreal monolith
#

Ok, it looks like the error is due to you enabling the cross origin embedder policy. You need to remove the cross origin embedder policy on your and as we do not support cross-origin isolated sites. Can you remove it and try again?

hexed nebula
#

ok, but is it safe to not have it?

unreal monolith
#

Yes, not sure why you would think otherwise. Was there an issue you noticed?

hexed nebula
#

I'm not familiar with CORS but it seems to be a security thing

#

and if it is enabled by default I wonder if it is approriate to disable it

#

if it could cause potential issues on the future etc

unreal monolith
#

I do not think it's enabled by default, I was under the impression that you enabled the cross origin embedder policy.

hexed nebula
#

I'm confused, is it a stripe configuration or a project configuration? I'm using the Svelte+Kit framework for my project but I don't remember changing anything about it

#

do u have an idea where that configuration would be? I'm searching on the internet but it is weirdly unclear

#

ok, I think I found it, was a piece of code I copied that had Cross-Origin-Embedder-Policy': 'require-corp in the middle of it

#

it didn't solve the error

#

I have no other Cross reference on my project

unreal monolith
#

Can you share the URL so we can further debug this?

hexed nebula
#

which url?

#

the full error is: GET https://js.stripe.com/v3 net::ERR_BLOCKED_BY_RESPONSE.NotSameOriginAfterDefaultedToSameOriginByCoep 200 (OK)

unreal monolith
#

The page where you're trying to make this request and see the above error

hexed nebula
#

it's a localhost/membership

unreal monolith
#

Can you make it publicly accessible? You can use ngrok for instance

hexed nebula
#

I think so, but I've never done that... how would that help?

#

it's a network problem with stripe js due to cross origin configuration

unreal monolith
#

You're using Svelte+Kit framework which we do not know what they are controlling. For this reason, for us to help identify where the cross origin embedder policy is set we need to look at the URL.

pale oakBOT
hexed nebula
#

the page is behind a login access

#

would it make a difference?

velvet mantle
#

๐Ÿ‘‹ stepping in here

hexed nebula
#

hello

velvet mantle
#

So yeah it sounds like you have your own COEP policy currently.

#

Stripe.JS can't load when you are enforcing a COEP

#

So you will need to disable that within your framework itself

hexed nebula
#

I find it a really weird problem

#

I just openned a help post on the framework community about disabling coep

#

I'll wait their answer