I am getting the error net::ERR_INSECURE_RESPONSE
when my script in angular tries to access my WCFservice method. To get it to work, every browser that accesses the website needs to find the url used in the ajax call and manually add the certificate to their trusted sites. IS there no way to get this done automatically without purchasing a real certificate? To resolve this I tried three things:
- Setup crossdomain.xml on the service opening requests from everyone
<?xml version="1.0" ?> <cross-domain-policy> <site-control permitted-cross-domain-policies="master-only"/> <allow-access-from domain="*"/> <allow-http-request-headers-from domain="*" headers="*"/> </cross-domain-policy>
Still got the same error net::ERR_INSECURE_RESPONSE
- Sent the following headers in the request from angular
Access-Control-Allow-Origin:* Access-Control-Allow-Methods:GET, POST Access-Control-Allow-Headers: Content-Type, Accept,TOKEN
Still got the same error net::ERR_INSECURE_RESPONSE
- Followed this link the best I could to setup a custom self signed certificate but when setting up the bindings in IIS on the server I got this error:
one or more intermediate certificates in the certificate chain are missing. To resolve this issue, make sure that all of the intermediate certificates are installed
I have deployed a WCF 4.0 REST Service on Windows Server 2012. I think I need to get point #3 right for this to work. I would need assistance in understanding how to solve the error mentioned for point #3.
The Website url: https://www.mydomain.com/Website/
The Service url: https://www.mydomain.com/Webservice/
Any help appreciated.