improvement: set X-Requested-With to prevent browser authentication dialog (via #4934)
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user