I am trying to create a public web service (WCF / Rest) that implements basic authentication. The problem I am facing is that in order for the web service to be available, it must allow scripting from other domains. To do this, the end user will need to use JSONP to receive a response, and JSONP requests do not allow the addition of additional headers (for example, the main authentication header).
I need to be able to support IE8-10, Firefox and Chrome with this solution.
I tried changing the url:
http://username: password@Service /Endpoint/Method
but to no avail in IE10.
I also used the sentence from this post:
http://kevinkuchta.com/_site/2012/01/basic-authentication-with-jsonp/
but it doesn't seem to cut it in IE10 either.
source share