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