Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
Add X-Requested-With header to all requests
Browse files Browse the repository at this point in the history
oC 10 uses this header to determine whether a request is an ajax
request. If we want to get rid of this, we need to make sure it's
not used anymore. For example currently it's used to determine
whether a PROPFIND on a password protected link should show
an auth popup or not.
  • Loading branch information
dschmidt committed Mar 4, 2022
1 parent 7bd2585 commit 6637f76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/helperFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ class helpers {
headers.Authorization = this._authHeader
}
headers['X-Request-ID'] = uuidv4()
headers['X-Requested-With'] = 'XMLHttpRequest'
return headers
}

Expand Down

0 comments on commit 6637f76

Please sign in to comment.