#Wojtek

1 messages ยท Page 1 of 1 (latest)

bright novaBOT
elfin cosmos
wind cosmos
#

Hmm, working for me

elfin cosmos
#

Super weird ๐Ÿค”

wind cosmos
#

I know that this can sometimes happen sporadically

elfin cosmos
#

Maybe something on my side then

wind cosmos
#

Which browser?

elfin cosmos
#

Yeah, I've seen that once before, that's why I asked here. But if it works for you, maybe it's on my env.

#

It's chrome

wind cosmos
#
GitHub

Describe the bug When running stripe-preview apps start locally and using the Safari browser, the Stripe dashboard cannot find the local app. This is because Safari content security policies preven...

GitHub

Describe the bug When running stripe-preview apps start locally and using the Firefox browser, the Stripe dashboard cannot find the local app. This is because Firefox's content security pol...

#

Can you try a different browser? Is your CLI up-to-date?

elfin cosmos
#

I see now what broke it. I added stripe SDK call to the app and it stopped working ๐Ÿค”

#

Is it possible to use stripe sdk inside the app?

wind cosmos
#

Which SDK?

elfin cosmos
#

The JS one. Stuff like this:

import Stripe from "stripe"
const stripe = new Stripe("KEY", {
   apiVersion: "2020-08-27",
})

const account = await stripe.accounts.retrieve(accountId)
#

Maybe because I put a test key to the Stripe it assumed which account I'm using and it didn't find any app running for that account ๐Ÿค”

wind cosmos
#

Maybe related?

elfin cosmos
#

Thank you so much ๐Ÿ˜„

wind cosmos
elfin cosmos
#

That's probably it, I knew I saw a paragraph about it in the docs

#

Cheers ๐Ÿ™Œ

wind cosmos
#

np