jpillora / xdomain

A pure JavaScript CORS alternative
https://jpillora.com/xdomain/
3.12k stars 269 forks source link

Blocked Request #171

Closed holtjonathan closed 8 years ago

holtjonathan commented 8 years ago

I have several webservers (dev, test, uat, etc). I got xdomain working fine in dev/test however in UAT, which is where load balancing and https comes into play (in order to replicate prod), I am getting the following error: xdomain (https://integrationmdl.grangeinsurance.com): blocked request from: 'https://gainweblifemdl.grangeagent.com'

Here is my script located with my site: <script type="text/javascript" src="../GAINWebApp/Assets/libs/easyXDM/xdomain.js" debug="true" slave="https://integrationmdl.grangeinsurance.com/proxy.html"></script>

Here is my proxy.html: `

` Am I doing something wrong that would prevent xdomain from working in https but being okay in http?
holtjonathan commented 8 years ago

I thought that I saw my issue. My proxy file had the master set to http://*. I switched it to be https://* and I still get the same error.

holtjonathan commented 8 years ago

And nevermind. I had my proxy.html file on my webserver when it should have been on my WCF service server. Thanks for creating xdomain. It is awesome :)