ionic-shop icon indicating copy to clipboard operation
ionic-shop copied to clipboard

Uncaught SecurityError Stripe HTTPS protocol

Open ghost opened this issue 10 years ago • 1 comments

Hello,

I am getting the following error:

Uncaught SecurityError: Blocked a frame with origin "https://js.stripe.com" from accessing a frame with origin "http://localhost:8100". The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http". Protocols must match.

Because of the following line in index.html:

Is there a work around this issue?

Hervé

ghost avatar Jul 07 '15 14:07 ghost

I'm getting that issue as well.

Unfortunately, it doesn't look like there's a workaround for it, unless you go and install a local SSL certificate that your development server can use. I'm developing for Rails, and I'm in the midst of the that myself (which isn't very easy). For testing's sake, I'm uploading my application to a test Heroku application (which does have SSL enabled) to test my stripe functionality. It's not the idea situation but it works.

achengscode avatar Jul 21 '15 21:07 achengscode