without -> with
This commit is contained in:
Dmitriy Davydov 2020-06-27 10:01:42 +05:00 committed by GitHub
parent ef2760eb86
commit 4044b75381
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -329,7 +329,7 @@ fetch('http://another.com', {
}); });
``` ```
Now `fetch` sends cookies originating from `another.com` without request to that site. Now `fetch` sends cookies originating from `another.com` with request to that site.
If the server agrees to accept the request *with credentials*, it should add a header `Access-Control-Allow-Credentials: true` to the response, in addition to `Access-Control-Allow-Origin`. If the server agrees to accept the request *with credentials*, it should add a header `Access-Control-Allow-Credentials: true` to the response, in addition to `Access-Control-Allow-Origin`.