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
Note, we do send cookies already as a header in Request.Headers, and only when SendDefaultPii == true. So, this is mostly an annoyance when writing event/transaction processors, or in BeforeSend.
Relay will normalize Request.Cookies and cookies sent in Request.Headers, so they're treated the same by Sentry either way.
This is mainly an issue because the default filter for the Identity cookie does not work if the cookie got renamed, and filtering cookies in an unparsed header is far too involved.
Package
Sentry.AspNet
Sentry.AspNetCore
SDK Version
3.24.0
Steps to Reproduce
In an ASP.NET Core app (such as
Sentry.Samples.AspNetCore.Basic
):Create a processor to log cookies to the console for both events and transactions:
Set options:
Set a cookie in some endpoint:
Run the app and load the page once to set the cookie, and then reload the page again so the browser sends the cookie in the request.
Actual Result
The console output shows:
Expected Result
Cookies should be populated and set on the request (as long as
SendDefaultPii == true
)https://develop.sentry.dev/sdk/event-payloads/request/
Applies to both ASP.Net Framework and ASP.Net Core
The text was updated successfully, but these errors were encountered: