I am facing issues with CORS Headers Issues when calling Auth HCI APIs
I need to deploy HornetPOC application on server(170) and access Auth HCI APIs, When trying to access Auth APIs getting error as below:
"Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://188.8.131.52:8888/auth/oauth/. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing)"
Auth API URL: https://184.108.40.206:8888/auth/oauth/
Below is the response header when raising auth request:
Date: Tue, 27 Jun 2017 14:07:08 GMT
Expires: Tue, 27 Jun 2017 14:07:08 GMT
During development, I added SimpleHTTPServer and routed my requests and edited missing headers.
I am not sure if I need to setup exactly same architecture on server also to have access to Auth APIs.
I have a alternate solution to deploy HornetPOC application inside HCI application folder, so that I will have same URL as we have auth API URL. In this way, CORS issue will not arise. After deploying HornetPOC application inside HCI API application folder, I will have URL something like below:
now hornetPOC application URL is as below:
Any idea how to get access to Auth APIs without having or bypassing CORS headers.