closes #2317
This commit is contained in:
parent
75a56dac98
commit
a964025a5d
3 changed files with 32 additions and 32 deletions
|
@ -138,7 +138,7 @@ The `mode` option is a safe-guard that prevents occasional cross-origin requests
|
|||
|
||||
- **`"cors"`** -- the default, cross-origin requests are allowed, as described in <info:fetch-crossorigin>,
|
||||
- **`"same-origin"`** -- cross-origin requests are forbidden,
|
||||
- **`"no-cors"`** -- only simple cross-origin requests are allowed.
|
||||
- **`"no-cors"`** -- only safe cross-origin requests are allowed.
|
||||
|
||||
This option may be useful when the URL for `fetch` comes from a 3rd-party, and we want a "power off switch" to limit cross-origin capabilities.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue