feat: add sub path for actual url

This commit is contained in:
2024-07-05 01:35:19 +03:00
parent 57f4d1b822
commit f42caa3a45
7 changed files with 58 additions and 19 deletions

View File

@ -69,11 +69,11 @@ public partial class SetupController(
Response.Cookies.Append("AuthToken", token, new CookieOptions
{
HttpOnly = false,
Secure = false,
Path = "/"
Path = UrlHelper.GetSubPath + "api",
Domain = UrlHelper.CurrentDomain(ControllerContext.HttpContext),
Secure = true,
HttpOnly = true
});
return Ok(true);
}