APM server RUM endpoints disabled and CORS cross origin


(Kishore Raj Vj) #1

Hai, I am using APM Server Version 6.5.4 and I am using JS agent. I am getting

<2019-02-12T10:44:11.619+0530 ERROR [request] beater/common_handlers.go:467 error handling request {"response_code": 403, "error": "forbidden request: endpoint is disabled"}
/>

<Access to XMLHttpRequest at 'http://localhost:8200/intake/v2/rum/events' from origin 'http://localhost:4200' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource./>

I have also enabled RUM Endpoint and allow_origins to ['*'] in apm-server.yml but still the error occurs. Can u help me out in solving this.


(Andrew Wilkins) #2

Please read through https://www.elastic.co/guide/en/apm/agent/js-base/current/distributed-tracing-guide.html#distributed-tracing-guide. You will need to modify your application to respond to CORS preflight requests as described under Server Configuration.


(Kishore Raj Vj) #3

Thank You. Issues solved.