You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/platforms/javascript/common/tracing/distributed-tracing/dealing-with-cors-issues/index.mdx
+3-44Lines changed: 3 additions & 44 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ notSupported:
16
16
- javascript.nestjs
17
17
---
18
18
19
-
If your frontend and backend are hosted on different domains (for example, your frontend is on `https://example.com` and your backend is on `https://api.example.com`), you may need to configure your backend [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers) headers to ensure distributed tracing works properly.
19
+
If your frontend and backend are hosted on different domains (for example, your frontend is on `https://example.com` and your backend is on `https://api.example.com`), you need to configure your backend [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers) headers to prevent requests from being blocked by the browser.
20
20
21
21
## Understanding Trace Propagation
22
22
@@ -26,7 +26,7 @@ Sentry doesn't attach the `sentry-trace` and `baggage` headers to every outgoing
26
26
- Requests containing `localhost` in their URL (e.g., `http://localhost:3000/api`)
27
27
- Requests whose URL starts with `/` (e.g., `/api/users`, `/graphql`)
28
28
29
-
This default behavior helps prevent sending trace data to third-party services and reduces potential CORS issues.
29
+
This default behavior helps prevent sending trace data to third-party services and avoids potential CORS issues.
0 commit comments