improvement: set X-Requested-With to prevent browser authentication dialog (via #4934)

This commit is contained in:
dalbrx-forcam
2019-02-15 00:20:06 +01:00
committed by kyle
parent 373da3bee3
commit 937c8f6208

View File

@@ -168,7 +168,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({