feat: add 'secureCookies' configuration variable to explicitly set the secure flag and prevent confusion
This commit is contained in:
@@ -176,7 +176,7 @@ export class AuthController {
|
||||
request.cookies.access_token,
|
||||
);
|
||||
|
||||
const isSecure = this.config.get("general.appUrl").startsWith("https");
|
||||
const isSecure = this.config.get("general.secureCookies");
|
||||
response.cookie("access_token", "", {
|
||||
maxAge: -1,
|
||||
secure: isSecure,
|
||||
|
||||
Reference in New Issue
Block a user