Samesite cookie not working on DXP
As the previous post related to Samesite cookie: https://khanhpham2411.blogspot.com/2020/11/samesite-cookie-login-troubleshooting.html It could work just fine in your local environment but when deployed to DXP the workaround using rewrite rule seem not working anymore. It might be the different .net version installed between DXP and local. Time to try some coding 🙂 Fortunately, I found a post really helpful: https://devblogs.microsoft.com/aspnet/upcoming-samesite-cookie-changes-in-asp-net-and-asp-net-core/ Then implement it with Episerver style: 1. Make sure you are targeting project with .NET 4.7.2 and upgraded Microsoft.Owin 4.1.0 2. Add this class to the Commerce Manager site using Microsoft . Owin ; using Microsoft . Owin . Infrastructure ; namespace EPiServer . Reference . Commerce . Manager { public class SameSiteCookieManager : ICookieManager { private readonly ...