-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] v2.ODataModel: Set "X-Requested-With" header
The "X-Requested-With" being set to "XMLHttpRequest" for OData requests properly indicate that these requests are used to fetch data for non-crossOrigin requests. Cross origin requests can cause unwanted preflight requests with this header being set. It is also not a CORS-safelist request-header. This behaviour is in sync with jQuery.ajax which is used by OData V4. PS1: initial implementation with tests PS2: fix unit test PS3: review comments PS4: review comments PS5: review comments PS6: review comments PS7: review comments PS8: review comments PS9: review comments PS10: review comments BCP: 2170172149 Closes: #3324 Change-Id: I1fb8bd23b9a65fb8361ddbad0d170ccf49b40771
- Loading branch information
1 parent
4c9905c
commit 15acac7
Showing
4 changed files
with
49 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters