This commit is contained in:
Ilya Kantor 2020-12-05 20:41:32 +03:00
parent 75a56dac98
commit a964025a5d
3 changed files with 32 additions and 32 deletions

View file

@ -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.