Access to XMLHttpRequest has been blocked by CORS policy: Request header field traceparent is not allowed by Access-Control-Allow-Headers in preflight response

Gotcha! It needs to be on OPTIONS!

From the Datadog RUM docs:

These HTTP headers are not CORS-safelisted, so you need to configure Access-Control-Allow-Headers on your server handling requests that the SDK is set up to monitor. The server must also accept preflight requests (OPTIONS requests), which are made by the SDK prior to every request.