Adding Sentry to codebase results in Dgraph throwing CORS errors #8916
Closed
benwoodward
started this conversation in
General
Replies: 1 comment
-
|
Converted to Issue #9529 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Sentry adds a
Baggageheader (as well assentry-trace), and they suggest that you configure your backend server to allow these headers, however, I don't think there's a way to do that in Dgraph? Should this be a feature request?It seems I should be able to add the following to my schema, but I can't:
For the time being, I will write some logic that intercepts any requests to Dgraph and strips the headers.
EDIT: Here's how to prevent the headers from being added to specific requests:
python: https://docs.sentry.io/platforms/python/usage/distributed-tracing/limiting-trace-propagation/
js: https://docs.sentry.io/platforms/javascript/performance/instrumentation/automatic-instrumentation/
Beta Was this translation helpful? Give feedback.
All reactions