Skip to content

Commit a57edc1

Browse files
authored
Merge pull request #1425 from henchies/patch-1
Update article.md
2 parents 3bd5789 + a93fdf4 commit a57edc1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

5-network/05-fetch-crossorigin/article.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Cross-origin requests -- those sent to another domain (even a subdomain) or prot
2020

2121
That policy is called "CORS": Cross-Origin Resource Sharing.
2222

23-
## Why CORS is needed? A brief history
23+
## Why is CORS needed? A brief history
2424

2525
CORS exists to protect the internet from evil hackers.
2626

@@ -95,7 +95,7 @@ That works, and doesn't violate security, because both sides agreed to pass the
9595
9696
After a while, networking methods appeared in browser JavaScript.
9797
98-
At first, cross-origin requests were forbidden. But as a result of long discussions, cross-origin requests were allowed, but any new capabilities unless require an explicit allowance by the server, expressed in special headers.
98+
At first, cross-origin requests were forbidden. But as a result of long discussions, cross-origin requests were allowed, but with any new capabilities requiring an explicit allowance by the server, expressed in special headers.
9999
100100
## Simple requests
101101
@@ -341,7 +341,7 @@ Access-Control-Allow-Origin: https://javascript.info
341341
Access-Control-Allow-Credentials: true
342342
```
343343
344-
Please note: `Access-Control-Allow-Origin` is prohibited from using a star `*` for requests with credentials. Like shown above, there must be exactly the origin there. That's an additional safety measure, to ensure that the server really knows who it trusts to make such requests.
344+
Please note: `Access-Control-Allow-Origin` is prohibited from using a star `*` for requests with credentials. Like shown above, it must provide the exact origin there. That's an additional safety measure, to ensure that the server really knows who it trusts to make such requests.
345345
346346
## Summary
347347

0 commit comments

Comments
 (0)