mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
Add withCredentials flag to XHR
This commit is contained in:
parent
9c50c94453
commit
0647551f8a
@ -79,6 +79,8 @@ export class UploadWidget extends WidgetComponent implements OnInit {
|
||||
|
||||
let xhr: XMLHttpRequest = new XMLHttpRequest();
|
||||
|
||||
xhr.withCredentials = true;
|
||||
|
||||
xhr.onreadystatechange = () => {
|
||||
if (xhr.readyState === 4) {
|
||||
if (xhr.status === 200) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user