APM server RUM endpoints disabled and CORS cross origin

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.

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.

Thank You. Issues solved.

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