Skip to content

Commit b9481da

Browse files
authored
Edits based on feedback iliakan
1 parent 7a7b25a commit b9481da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ Access-Control-Max-Age: 86400
280280

281281
Now the browser can see that `PATCH` is in `Access-Control-Allow-Methods` and `Content-Type,API-Key` are in the list `Access-Control-Allow-Headers`, so it sends out the main request.
282282

283-
If there's the header `Access-Control-Max-Age` with a number of seconds, then the preflight permissions are cached for the given time. The response above will be cached for 86400 seconds (one day). Within this timeframe, subsequent requests will not cause a preflight. Assuming that they fit the cached permissions. They will be sent directly.
283+
If there's the header `Access-Control-Max-Age` with a number of seconds, then the preflight permissions are cached for the given time. The response above will be cached for 86400 seconds (one day). Within this timeframe, subsequent requests will not cause a preflight. Assuming that they fit the cached allowances, they will be sent directly.
284284
285285
### Step 3 (actual request)
286286
@@ -384,4 +384,4 @@ Additionally, to grant JavaScript access to any response headers except `Cache-C
384384
- `Access-Control-Allow-Methods` with a list of allowed methods,
385385
- `Access-Control-Allow-Headers` with a list of allowed headers,
386386
- `Access-Control-Max-Age` with a number of seconds to cache the permissions.
387-
- Then the actual request is sent and the previous "safe" scheme is applied.
387+
- Then the actual request is sent, and the previous "safe" scheme is applied.

0 commit comments

Comments
 (0)