apm-server icon indicating copy to clipboard operation
apm-server copied to clipboard

Add CORS configuration for OpenTelemetry HTTP endpoints

Open axw opened this issue 3 years ago • 4 comments

To enable OpenTelemetry-instrumented browser applications to send data to APM Server, we should add CORS, like we support for the Elastic APM RUM JavaScript agent.

We should consider replacing apm-server.rum.allow_{origins,headers} with something more general, like apm-server.cors.allow_{origins,headers}, and have it apply to all HTTP endpoints.

axw avatar Aug 10 '22 23:08 axw

Hello, I am using open telemetry today and I'm getting Cors errors trying to connect to APM server. I wonder if I'm doing something wrong. Or do I need to add some configuration?

PaleHazy avatar Jan 25 '24 04:01 PaleHazy

This has yet to be prioritised or implemented, so it's currently not possible I'm afraid.

axw avatar Feb 02 '24 09:02 axw

This has yet to be prioritised or implemented, so it's currently not possible I'm afraid.

Hey @axw - just to confirm, this means it's not possible to send open telemetry data directly from the browser to an elastic.co APM server, correct?

ejbeaty avatar Feb 22 '24 18:02 ejbeaty

@ejbeaty correct, not without some kind of proxy in front

axw avatar Feb 23 '24 00:02 axw