MSAL Auth: Cookie Secure
The cookieSecure property maps to the Secure attribute on the Set-Cookie headers generated by the gateway.
Configuration Options
cookieSecure: false
or
cookieSecure: true
Usage
When cookieSecure is set to true, the browser will only transmit the cookie over a secure, encrypted connection (HTTPS). It will flatly refuse to send the cookie over plain HTTP.
- Development: You typically set this to
falsewhen developing locally overhttp://localhost. - Production: You must set this to
truein production to prevent cookies from being intercepted by network eavesdroppers. - SameSite Dependency: If you configure
cookieSameSite: None(which allows cross-origin requests), modern browsers requirecookieSecureto betrue. IfcookieSameSite: Noneis paired withcookieSecure: false, browsers like Chrome and Edge will reject the cookie outright.