-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CORS issue with allowedTracingOrigins - RUM setup #1818
Comments
Hello @psivadasan-dev, |
Hey unfortunately as its a redirect to 3rd party lib the origin of that request is of our main service and we need tracing for our main service. Hence this request. |
Do you have an idea of the API you want us to provide? |
yes. I think this is roughly what I think we should provide |
Thanks for the suggestion! |
That should be a supplemental check to the existing one.
|
Do you have an example of the values you would set in |
It should be an array of string | RegExp right? similar to allowedTracingOrigins.
|
I see, thanks again for the feedback, we will look at your suggestion. |
I'm currently blocked with this. If you guys can expedite this then I can really appreciate it. |
Hi! allowedTracingUrls is now available. You can find documentation about it here: https://docs.datadoghq.com/real_user_monitoring/connect_rum_and_traces/?tab=browserrum#usage |
@yannickadam @BenoitZugmeyer - I'm configuring my DD rum setup using the following
The allowed tracing URL skips a specific request. |
@praveen-sivadasan I've tested your RegExp and it seems to work fine. Could you please try the following:
|
@yannickadam thanks for the tips. I think it was mostly the sampleRate. Now it's working as expected! |
@yannickadam Hello, I am trying to troubleshoot my RUM setup. I tried adding the console.log to allowedTracingUrls but I do not see any output in console. Do you have any idea what I could be missing? This is a reactjs site. I can see the
|
Is your feature request related to a problem? Please describe.
In our SPA using Angular, we are using Datadog RUM. We recently enabled allowedTracingOrigins in RUM setup
https://docs.datadoghq.com/real_user_monitoring/connect_rum_and_traces/?tab=browserrum
This is causing CORS issues when we are using request redirect to a 3rd party lib, for authentication with that server.
Error:
We, unfortunately, don't have access to the 3rd partly lib server to modify Access-Control-Allow-Headers.
Describe the solution you'd like
In such scenarios, we would like to have tracing skipped for specific requests and thereby prevent Datadog from adding extra headers.
The text was updated successfully, but these errors were encountered: