diff --git a/5-network/05-fetch-crossorigin/article.md b/5-network/05-fetch-crossorigin/article.md index 2d7c20c7..b6675b11 100644 --- a/5-network/05-fetch-crossorigin/article.md +++ b/5-network/05-fetch-crossorigin/article.md @@ -165,7 +165,7 @@ Access-Control-Allow-Origin: https://javascript.info ## Response headers -For cross-origin request, by default JavaScript may only access "simple response headers": +For cross-origin request, by default JavaScript may only access so-called "simple" response headers: - `Cache-Control` - `Content-Language` diff --git a/5-network/05-fetch-crossorigin/xhr-another-domain.svg b/5-network/05-fetch-crossorigin/xhr-another-domain.svg index 7781a93e..1b2f5d5e 100644 --- a/5-network/05-fetch-crossorigin/xhr-another-domain.svg +++ b/5-network/05-fetch-crossorigin/xhr-another-domain.svg @@ -1,5 +1,5 @@ - + xhr-another-domain.svg Created with sketchtool. @@ -9,43 +9,43 @@ JavaScript - + - Browser + Browser - + - Server + Server - - - + + + - Origin: https://javascript.info + Origin: https://javascript.info - HTTP-request + HTTP-request - fetch() + fetch() - HTTP-response + HTTP-response - Access-Control-Allow-Origin: - * OR https://javascript.info + Access-Control-Allow-Origin: + * OR https://javascript.info - if the header allows, success, + if the header allows, then success, - otherwise fail + otherwise fail - - - + + + \ No newline at end of file diff --git a/figures.sketch b/figures.sketch index 1e09afb7..25af24a5 100644 Binary files a/figures.sketch and b/figures.sketch differ