JoshSGman/ionic-shop

Uncaught SecurityError Stripe HTTPS protocol

Opened this issue · 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:

<script type="text/javascript" src="https://js.stripe.com/v2/"></script>

Is there a work around this issue?

Hervé

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.