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
Sensitive query parameters leak to Sentry in event Referer HTTP header #25303
I set dataCollection.userInfo to false and otherwise didn't configure dataCollection.
Steps to Reproduce
I submitted a form on a page with a sensitive query parameter in the URL, such as ?jwt=baz. This resulted in the document having a Referer with the sensitive query parameter. I triggered a JS exception and looked at the event payload. The Referer is automatically captured in the event under request.headers.
Expected Result
Ideally, the Referer would be processed as a URL, and sensitive query params could be filtered?
Activity
linear-code commentedon Oct 12, 2026
JS-3918
JPeer264 commentedon Oct 13, 2026
Thanks for writing in. I btw already opened a PR to add this feature - looks quite important to have in.
fix(browser): Apply `urlQueryParams` to the Referer header (getsentry…
github-actions commentedon Oct 15, 2026
A PR closing this issue has just been released 🚀
This issue was referenced by PR #25324, which was included in the 11.8.0 release.