From f4d3346d40fce8c7f6836bc5b68d6a675e909a0d Mon Sep 17 00:00:00 2001 From: David Albrecht Date: Wed, 10 Oct 2018 22:53:15 +0200 Subject: [PATCH] added X-Requested-With: XMLHttpRequest header to prevent browser authentication dialog --- src/core/plugins/auth/actions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/plugins/auth/actions.js b/src/core/plugins/auth/actions.js index 45dbf727113..097017650de 100644 --- a/src/core/plugins/auth/actions.js +++ b/src/core/plugins/auth/actions.js @@ -173,7 +173,8 @@ export const authorizeRequest = ( data ) => ( { fn, getConfigs, authActions, err let _headers = Object.assign({ "Accept":"application/json, text/plain, */*", - "Content-Type": "application/x-www-form-urlencoded" + "Content-Type": "application/x-www-form-urlencoded", + "X-Requested-With": "XMLHttpRequest" }, headers) fn.fetch({