I have a bunch of marathon servers set up for some tests that are automatically run, and I would like to make a dashboard that shows the health of each of the micro-services on all 5 of the servers so that I can see if everything is healthy all at once, rather than having to load the individual pages.
When I try to do so I get the error
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote
resource at http://host.com:8080/v2/tasks.
(Reason: CORS header 'Access-Control-Allow-Origin' missing).
I've been reading up on this error and I've seen that if you add the Access-Control-Allow-Origin
header in the response from the marathon server that it should allow cross origin requests, but I have no idea how to do this/if this is possible.
Does anyone know if it's possible to change some settings in marathon or something that would allow me to do cross origin requests?