fix(filer-ui): support folder creation with JWT token in URL (#7271)
fix: filer ui create folder with jwt token error
This commit is contained in:
@@ -315,7 +315,7 @@
|
|||||||
if (dirName == null || dirName == '') {
|
if (dirName == null || dirName == '') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var baseUrl = window.location.href;
|
var baseUrl = window.location.origin + window.location.pathname;
|
||||||
if (!baseUrl.endsWith('/')) {
|
if (!baseUrl.endsWith('/')) {
|
||||||
baseUrl += '/';
|
baseUrl += '/';
|
||||||
}
|
}
|
||||||
@@ -323,6 +323,7 @@
|
|||||||
if (!url.endsWith('/')) {
|
if (!url.endsWith('/')) {
|
||||||
url += '/';
|
url += '/';
|
||||||
}
|
}
|
||||||
|
url += window.location.search;
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.open('POST', url, false);
|
xhr.open('POST', url, false);
|
||||||
xhr.setRequestHeader('Content-Type', '');
|
xhr.setRequestHeader('Content-Type', '');
|
||||||
|
|||||||
Reference in New Issue
Block a user