Datadog: enabling RUM allowedTracingOrigins raises CORS errors

5.2k Views Asked by At

I tried to connect RUM with backend traces. In react SPA application I setup a datadog-rum and enabled allowedTracingOrigins option for it, after that our fetch and xhr requests to API started to fail.

How to connect RUM and backend traces properly?

1

There are 1 best solutions below

0
On
  1. Use datadog-rum version >=2.16, this one will not cut your custom headers such as Authorization (see. diff)
  2. Check your server CORS handler. Your server should allow x-datadog-* headers and return them in the access-control-allow-headers header