fix(cookieAuth): prefer issuing cookies against target host instead of origin
Signed-off-by: Phil Kuang <pkuang@factset.com>
This commit is contained in:
+1
-1
@@ -232,7 +232,7 @@ class DefaultHttpAuthService implements HttpAuthService {
|
||||
const externalBaseUrlStr = await this.#discovery.getExternalBaseUrl(
|
||||
this.#pluginId,
|
||||
);
|
||||
const externalBaseUrl = new URL(origin ?? externalBaseUrlStr);
|
||||
const externalBaseUrl = new URL(externalBaseUrlStr ?? origin);
|
||||
|
||||
const secure =
|
||||
externalBaseUrl.protocol === 'https:' ||
|
||||
|
||||
Reference in New Issue
Block a user