-
I'm using the following
with Which I believe should allow all origins using CORS. However, I still get CORS errors when attempting to POST to the OTLP endpoint in the browser. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
did you check what |
Beta Was this translation helpful? Give feedback.
-
Turns out, I had the wrong OTLP import. I was importing the Using I think this might be something weird with Chrome, since if I right click on the request and copy it as a CURL command, the request does succeed and the traces show up as I would expect in jaeger. I'll experiment a bit more. |
Beta Was this translation helpful? Give feedback.
Turns out, I had the wrong OTLP import. I was importing the
OTLPTraceExporter
from@opentelemetry/exporter-trace-otlp-grpc
not@opentelemetry/exporter-trace-otlp-http
. After fixing this, the request no longer has CORS issues and instead stalls indefinitely.Using
@opentelemetry/sdk-node
version0.41.2
I think this might be something weird with Chrome, since if I right click on the request and copy it as a CURL command, the request does succeed and the traces show up as I would expect in jaeger. I'll experiment a bit more.