REST API and CORS

Newbie developer here,

I have been trying to access hologram data via the REST API from javascript embedded in a webpage. I have been successful at this by loading the webpage directly in the browser, but have failed to be achieve the same result when I call the webpage from a webserver. Google chrome’s developer shows an error which indicates that the “Access-Control-Allow-Origin” is null. After some research, it is appears that this is caused by the “Access-Control-Allow-Origin” header on the hologram server to be set to null. I have verified this to be the case over postman. I have read that there are a slew of ways around this problem, but before I embark down that road, I was curious if there is a reason this should be set to null or if this is an oversight.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.