SSO: Rebuild the server url without query string and/or hash (#4731)
This commit is contained in:
parent
c21b61bef2
commit
7a0b5f982e
1 changed files with 4 additions and 3 deletions
|
|
@ -114,10 +114,11 @@ class SSO extends PureComponent {
|
|||
// Check whether we need to set a sub-path
|
||||
parsedUrl.set('pathname', original.pathname || '');
|
||||
|
||||
parsedUrl.set('query', '');
|
||||
Client4.setUrl(parsedUrl.href);
|
||||
// Rebuild the server url without query string and/or hash
|
||||
const url = `${parsedUrl.origin}${parsedUrl.pathname}`;
|
||||
Client4.setUrl(url);
|
||||
|
||||
CookieManager.get(parsedUrl.href, true).then((res) => {
|
||||
CookieManager.get(url, true).then((res) => {
|
||||
const mmtoken = res.MMAUTHTOKEN;
|
||||
const csrf = res.MMCSRF;
|
||||
const token = typeof mmtoken === 'object' ? mmtoken.value : mmtoken;
|
||||
|
|
|
|||
Loading…
Reference in a new issue