Merge pull request #1926 from ironsoul0/patch-1

Details on cross-origin requests & credentials
This commit is contained in:
Ilya Kantor 2020-05-27 11:52:08 +03:00 committed by GitHub
commit 4a22c9896b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -309,7 +309,7 @@ JavaScript only gets the response to the main request or an error if there's no
## Credentials
A cross-origin request by default does not bring any credentials (cookies or HTTP authentication).
A cross-origin request initiated by JavaScript code by default does not bring any credentials (cookies or HTTP authentication).
That's uncommon for HTTP-requests. Usually, a request to `http://site.com` is accompanied by all cookies from that domain. But cross-origin requests made by JavaScript methods are an exception.