Dan 'Diplo' Booth
04/09/2024, 10:37 AMStartup.cs
like this:
app.UseCookiePolicy(new CookiePolicyOptions
{
Secure = CookieSecurePolicy.Always,
HttpOnly = Microsoft.AspNetCore.CookiePolicy.HttpOnlyPolicy.Always
});
This should ensure ASP.NET sets all cookies as both Secure and HttpOnly. However, once I've done this and cleared all cookies and then I try and log into the back office then it doesn't load correctly. I can see that all of the Umbraco Angular.js controllers that make XHR requests fail to load and return a 417 Expectation Failed
error. See screenshot.
As soon as I remove the HttpOnly option it all loads again.
Before reporting this I just want to check whether anyone can confirm this or whether it's somehow peculiar to my set-up?
https://cdn.discordapp.com/attachments/1227205763328507975/1227205763680960542/image.png?ex=66278f6e&is=66151a6e&hm=15226dacf566592f76310b3df7322a42f7b1458abc85dc0895bf071fd0b06654&Sebastiaan
04/09/2024, 11:07 AMumbraco
.Dan 'Diplo' Booth
04/09/2024, 11:18 AMSebastiaan
04/09/2024, 11:23 AMkdx-perbol
04/10/2024, 9:52 AM