-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
corsBypass
API to EdgeFetchFunction
This is to be able to to access `nativeFetch` in React Native environments. This parameter consolidates all fetch modes into one method. Setting `auto` (default) will act like old `fetchCors` method. Setting `never` will act like old `fetch` method. Setting `always` will forcibly use the CORS-safe fetching implementation (cors-servers in browser environments and `nativeFetch` in React Native environments). In Node environments, `never`, `auto` and `always` are all idempotent.
- Loading branch information
Showing
4 changed files
with
36 additions
and
10 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