AnsweredAssumed Answered

COMMAND CENTER API + Access-Control-Allow-Origin - How to fix?

Question asked by diego.lacerda on May 3, 2016
Latest reply on May 4, 2016 by Florian_Cheval

I'm developing  one app which connects in the APM Command Center to get informations by the APM Command Center API. The problem is:



If i have instaled my App in one server different from the server which the AP Command Center is installed, i get the following error:



XMLHttpRequest cannot load http://******:8082/apm/acc/agent. Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header has a value 'http://******:8082' that is not equal to the supplied origin. Origin 'http://yyyyyy:8088' is therefore not allowed access.



So the ACC API is not allowing requests from other origins! How can i fix that?






The http://xxxxxxx is the IP of the APM Command Center Configuratio Server



The http://yyyyyyy is the IP of my web appliction who is calling the Command Center API