iis express - How do I bypass the 'ports, protocols and domains must match' CORS issue whilst in development? -


i have local site running asp.net mvc 3 on http , https through iis express.

the http url http://localhost:4000 , https https://localhost:44301.

i'm trying hook stripe payments api not port, protocol , domain mismatch. i've tried using cors tell trust stripe.com seems due port mismatch , cannot figure out how tell ignore that.

adding following header not product difference.

access-control-allow-origin:*

when accessing payment page via http, following:

blocked frame origin "https://checkout.stripe.com" accessing frame origin "http://localhost:4000". frame requesting access has protocol of "https", frame being accessed has protocol of "http". protocols must match.

it gets worse when using ssl local ssl port not 443.

how tell cors ignore port mismatch whilst in development?

you can disable same origin policy while in development. load chrome following argument: --disable-web-security

https://stackoverflow.com/a/6083677/287760


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -