My specific header request
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 error message displays in console
OPTIONS http://demo7876167.mockable.io/auth/login net::ERR_EMPTY_RESPONSE
Interestingly, the same URL functions properly when accessed through Postman. This issue arises whenever I attempt to access a different server.
Is there a specific approach in AngularJS to execute calls so that I can send requests to any CORS-enabled server?