fix: get sub url without first "api"

This commit is contained in:
2024-07-05 01:59:36 +03:00
parent ac4804e864
commit 820828276e
3 changed files with 26 additions and 2 deletions

View File

@ -29,7 +29,7 @@ public class AuthController(IOptionsSnapshot<Admin> user, AuthService auth, Pass
var cookieOptions = new CookieOptions
{
Expires = expires,
Path = UrlHelper.GetSubPath + "api",
Path = UrlHelper.GetSubPathWithoutFirstApiName + "api",
Domain = UrlHelper.CurrentDomain(ControllerContext.HttpContext),
Secure = true,
HttpOnly = true