forked from openfl/openfl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
URLRequest: add withCredentials property for web requests (closes ope…
…nfl#2719) https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials This is a property that didn't exist in Flash, but it is necessary for OpenFL's HTML5 target to be able to customize the behavior of the internal XMLHttpRequest in Lime's HTTPRequest class. Uses the HTTPRequest withCredentials property, which was exposed for similar reasons. At some point in the past, URLRequest's manageCookies property was incorrectly used to set HTTPRequest's withCredentials property. However, manageCookies and withCredentials are not the same thing. They both control the behavior of cookies, but under different circumstances. manageCookies is supposed to control whether cookies are ever saved and passed with requests. withCredentials specifically applies to cross-origin requests only. Setting withCredentials will have no affect on targets that don't run in web browsers because all requests on native are essentially treated as same-origin.
- Loading branch information
1 parent
6aab3ef
commit fe9d3b5
Showing
3 changed files
with
27 additions
and
0 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