feat: update cookie domain setting to be dynamic based on hostname
This commit is contained in:
@@ -56,7 +56,7 @@ function SendReq({
|
|||||||
cookieOptions = {
|
cookieOptions = {
|
||||||
...cookieOptions,
|
...cookieOptions,
|
||||||
secure: true,
|
secure: true,
|
||||||
domain: ".nobat724.com",
|
domain: `.${hostname.split(".").slice(-2).join(".")}`,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user