refactor: use this in static method
This commit is contained in:
@ -74,9 +74,11 @@ public partial class SetupController(
|
||||
Response.Cookies.Append("AuthToken", token, new CookieOptions
|
||||
{
|
||||
Path = UrlHelper.GetSubPathWithoutFirstApiName + "api",
|
||||
Domain = UrlHelper.CurrentDomain(ControllerContext.HttpContext),
|
||||
Domain = HttpContext.GetCurrentDomain(),
|
||||
#if !DEBUG
|
||||
Secure = true,
|
||||
HttpOnly = true
|
||||
#endif
|
||||
});
|
||||
return Ok(true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user