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
{{ message }}
Repository navigation
Commit b151d07
Browse filesBrowse the repository at this point in the historyBrowse files
feat(nextjs): Send tunnel route requests with credentials: 'omit' (#25509)
The tunnel route is same-origin, so the browser transport includes
credentials (cookies, HTTP authentication) with each request, and the
tunnel route does not need them. With `tunnelRoute`, `@sentry/nextjs`
now sets `credentials: 'omit'` on the transport.
Apps with a layer in front that checks credentials (for example Vercel
Deployment Protection) can opt back in:
```js
// instrumentation-client.ts
Sentry.init({
transportOptions: { fetchOptions: { credentials: 'same-origin' } },
});
```
Fixes JS-3927
Copy file name to clipboardExpand all lines: CHANGELOG.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,18 @@
19
19
20
20
Also, the server no longer sends spans of tunnel requests when span streaming is on, because these spans only show the SDK's own traffic.
21
21
22
+
- **feat(nextjs): Send tunnel route requests with `credentials: 'omit'` ([#25509](https://github.com/getsentry/sentry-javascript/pull/25509))**
23
+
24
+
With `tunnelRoute` and no tunnel route handler, `@sentry/nextjs` now sends events from the browser with `credentials: 'omit'`, because the tunnel route does not need cookies.
25
+
If a layer in front of your app checks cookies before it lets requests through (for example Vercel Deployment Protection), you can send them again in your browser `Sentry.init` call:
Work in this release was contributed by @adityareddy-dev, @jpdefo, @Jxxunnn, @philipatkinson, @Shubham-Padkonde, @mikamikasuki, and @mketiku. Thank you for your contributions!
23
35
24
36
- **feat(deno): Add incoming request options to `denoServeIntegration`**
0 commit comments