简体   繁体   中英

HTTP GET and POST from HTTPS domain

OK, so the basics of what I'm trying to do is send info from an AJAX webpage to a local app via a HTTP listening port. The web domain looks something like this --> https://coeus-dev.hosting.com:42122/Test/Example.html . it has a Submit button which does pretty much this --> "xmlhttp.open("GET", " http://localhost:4012/USP?unique=1470771541298&RequestType=Foo ", false);".

Using Fiddler I don't see any data come to the local host. I'm assuming that CORS is involved here some how but that just a total guess.

Bottom line: Why doesn't Fiddler see any traffic coming from the webpage to the localhost?

thanks!

It's not only a CORS problem, but a mixed-content too:

you can't make an http ajax request from an https webpage because the browser will block it for security reason.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM