I have a local site with ASP.Net MVC 3 through HTTP and HTTPS through IIS Express.
The HTTP http://localhost:4000 , and HTTPS is https://localhost:44301 .
I'm trying to enable Stripe's payment API, but it really doesn't like the mismatch of ports, protocols, and domains. I tried using CORS to tell him that he trusts stripe.com, but it seems that this is due to a port mismatch, and I cannot figure out how to tell him to ignore this.
Adding the following heading does not cause any differences.
Access-Control-Allow-Origin: *
When accessing my payment page via HTTP, I get the following:
Blocked frame with source " https://checkout.stripe.com " from access to frame with source " http://localhost:4000 ". The access request frame has the protocol "https", the frame that is accessed has the protocol "http". Protocols must comply.
It gets worse when using SSL, since my local SSL port is not 443.
How do I tell CORS to ignore port mismatch during development?
source share