Fix: CookieOptions
This commit is contained in:
@@ -47,8 +47,8 @@ public class AuthController : ControllerBase
|
|||||||
var cookieOptions = new CookieOptions
|
var cookieOptions = new CookieOptions
|
||||||
{
|
{
|
||||||
HttpOnly = true,
|
HttpOnly = true,
|
||||||
Secure = true, // Requiere HTTPS
|
Secure = Request.IsHttps, // Dinámico: true si es HTTPS, false si es HTTP
|
||||||
SameSite = SameSiteMode.Strict,
|
SameSite = SameSiteMode.Lax, // Permite navegación entre puertos/IPs más facil
|
||||||
Expires = DateTime.UtcNow.AddHours(8)
|
Expires = DateTime.UtcNow.AddHours(8)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user