This is my request header
Request URL:http://demo7876167.mockable.io/auth/login
Request Headers
Provisional headers are shown
Access-Control-Request-Headers:accept, content-type
Access-Control-Request-Method:POST
Origin:http://localhost:8000
Referer:http://localhost:8000/
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36
X-DevTools-Emulate-Network-Conditions-Client-Id:CACC0804-7333-424B-985E-DBA8164A45E1
this is the exact error which comes on console
OPTIONS http://demo7876167.mockable.io/auth/login net::ERR_EMPTY_RESPONSE
When I try to access the same URL through postman it seems to work. This happens whenever I try to access different server.
Is there any particular way to make calls in angularJs, so that I can post request to any server with CORS enabled