I’m hosting an Umbraco 13 site directly on Azure App Service.
During a PCI scan, I discovered that some cookies from the application are not marked as Secure, even though the site is served exclusively over HTTPS.
Specifically:
-
The
.AspNetCore.Antiforgerycookie (which I believe is created by Umbraco Forms) is returned withSecure=false. -
The
UMB_SESSIONcookie also appears without theSecureflag.
According to the Umbraco documentation, the UMB_SESSION cookie should automatically be secure when running over HTTPS:
“The UMB_SESSION cookie is secure if you are using HTTPS pages.”
Despite that, the Secure flag is still set to false.
Has anyone encountered this when hosting an Umbraco site on Azure App Service — and found a way to ensure these cookies are marked as secure?