- CORS (cross origin Request)
- Authenticated (username and password) with credentials
- chunked, keep-alive connection (persistant connection to fire events when ever data is available)
I have already tried xhr, Server sent Events, jsonp. Need connection to be open always.
Need any client side solutions. I’m working on asp.net MVC.
When requested directly in browser, prompts for username and password. when authenticated,got following request and response header.
Date:Sat, 05 Sep 2015 10:33:28 GMT
Accept-Encoding:gzip, deflate, sdch
User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36
In xhr, firebug give following error
NS_ERROR_DOM_BAD_URI: Access to restricted URI denied
Thanks in advance
I have solved this by consuming this API at server side and used SignalR to make it reflect in the browser. It has been a long time now but I hope this help someone.