Skip to content

Commit 937c8f6

Browse files
dalbrx-forcamshockey
authored andcommitted
improvement: set X-Requested-With to prevent browser authentication dialog (via #4934)
1 parent 373da3b commit 937c8f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/plugins/auth/actions.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ export const authorizeRequest = ( data ) => ( { fn, getConfigs, authActions, err
168168

169169
let _headers = Object.assign({
170170
"Accept":"application/json, text/plain, */*",
171-
"Content-Type": "application/x-www-form-urlencoded"
171+
"Content-Type": "application/x-www-form-urlencoded",
172+
"X-Requested-With": "XMLHttpRequest"
172173
}, headers)
173174

174175
fn.fetch({

0 commit comments

Comments
 (0)