0

How to bypass third party cookies in C#? Now cookies are set with Response.Cookies.Append and cookieOptions like this:

Response.Cookies.Append("SomeCookie", "SomeValue", cookieOptions);

There is an instructions how to work around the third-party cookies at developer.chrome.com/docs/privacy-sandbox/chips/ - but this Partitioned property is not allowed in cookieOptions class. Is there any way to set custom keys-values for cookie using Response.Cookies.Append ?

jsotola
  • 2,238
  • 1
  • 10
  • 22
Teriel
  • 11
  • 4
  • 1
    Managed to solve this problem by overwriting the headers (Response.Headers.Remove("Set-Cookie")/Response.Headers.Add("Set-Cookie", updatedCookies)) in the middleware using Response.OnStarting method. – Teriel Aug 24 '23 at 13:58

0 Answers0