Click here to Skip to main content
16,015,218 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello Expert,

I have deployed one WCF self-hosted service on Client PC and URL looks like - "http://localhost:[port]/myservice"

I have deployed one web application on server with SSL and url looks like - "httpS://abc.com/index.html"

Now I am trying to call the localhost service from html page through Javascript AJAX calling. But I am unable to call it because of the error like "Browser has blocked part of this page that are not secure".

Because of service is deployed as localhost, I have not implemented SSL and I think it is not possible to implement SSL with localhost (correct me if I am wrong).

now, When I disable security on my httpS web site, it is able to call hocalhost service which is deployed without httpS.

So, How can I call hocalhost service which is deployed on Client PC without SSL, with html page which is hosted with SSL on Server without disable security?
Posted
Updated 4-Jan-16 17:09pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900