#Pixelwarp

1 messages · Page 1 of 1 (latest)

short ruinBOT
wet solar
hazy rapids
#

I am not that familiar with Insomnia. Is it trying to render Checkout within an iframe? That might be the issue if so as Checkout does not support that at the moment

wet solar
#

I'll check real quick

#

Well i can't find where it renders it

#

Data from the server get's returned

#

(stripe api)

#

Not a iframe

#

it's a webview tag

#

And then theres a embedded iframe...

hazy rapids
#

Ah yeah that would cause that I believe. Unfortunately I don't think there will be a way to test these sessions there then, you will need to navigate to the page in a browser otherwise

wet solar
#

Yeah well the thing is i need to pass in a Authorization header, but i can't do that in the browser.

hazy rapids
#

Can you tell me more about what you are trying to do here?

wet solar
#

/payments/success doesn't work without a Authorization header passed in

#

But Authorization header also messes with the stripe api routes

hazy rapids
#

Thank you for the clarification. Is the Authorization header something that most browsers will provide when redirecting after Checkout?

wet solar
#

No, It's a custom token on my end.

#

So basically the createCheckout route gets the Authorization header which then passes it to stripe and then stripe thinks it's a stripe token

#

which it isn't

hazy rapids
#

Oh I see. So something like Insomnia is needed to make custom HTTP requests that pass that header, but Insomnia itself can't be the thing to render checkout here because of the iframe incompatibility.