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

@ -69,7 +69,7 @@ public partial class SetupController(
Response.Cookies.Append("AuthToken", token, new CookieOptions
{
Path = UrlHelper.GetSubPath + "api",
Path = UrlHelper.GetSubPathWithoutFirstApiName + "api",
Domain = UrlHelper.CurrentDomain(ControllerContext.HttpContext),
Secure = true,
HttpOnly = true