fix: credential sending for file uploads (#5869)
This commit is contained in:
parent
c940a2921e
commit
b745a29454
2 changed files with 2 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ export class FileUploadService extends APIService {
|
||||||
"Content-Type": "multipart/form-data",
|
"Content-Type": "multipart/form-data",
|
||||||
},
|
},
|
||||||
cancelToken: this.cancelSource.token,
|
cancelToken: this.cancelSource.token,
|
||||||
|
withCredentials: false,
|
||||||
})
|
})
|
||||||
.then((response) => response?.data)
|
.then((response) => response?.data)
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ export class FileUploadService extends APIService {
|
||||||
"Content-Type": "multipart/form-data",
|
"Content-Type": "multipart/form-data",
|
||||||
},
|
},
|
||||||
cancelToken: this.cancelSource.token,
|
cancelToken: this.cancelSource.token,
|
||||||
|
withCredentials: false,
|
||||||
})
|
})
|
||||||
.then((response) => response?.data)
|
.then((response) => response?.data)
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue