fix: get sub url without first "api"
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user