Skip to content

Commit fdda111

Browse files
authored
Fix some typo
1 parent 364e707 commit fdda111

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

2-ui/5-data-storage/01-cookie/article.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ document.cookie = "user=John; max-age=0";
166166

167167
The cookie should be transferred only over HTTPS.
168168

169-
**By default if we set a cookie at `http://site.com`, then it also appears at `https://site.com` and vise versa.**
169+
**By default, if we set a cookie at `http://site.com`, then it also appears at `https://site.com` and vise versa.**
170170

171171
That is, cookies only check the domain, they do not distinguish between the protocols.
172172

@@ -262,7 +262,7 @@ But if a cookie is `httpOnly`, then `document.cookie` doesn't see it, so it is p
262262

263263
## Appendix: Cookie functions
264264

265-
Here's a small set of functions to work with cookies, more conveinent than a manual modification of `document.cookie`.
265+
Here's a small set of functions to work with cookies, more convenient than a manual modification of `document.cookie`.
266266

267267
There exist many cookie libraries for that, so these are for demo purposes. Fully working though:
268268

@@ -348,7 +348,7 @@ Together: [cookie.js](cookie.js).
348348
A cookie is called "third-party" if it's placed by domain other than the user is visiting.
349349

350350
For instance:
351-
1. A page at `site.com` loads an banner from another site: `<img src="https://ads.com/banner.png">`.
351+
1. A page at `site.com` loads a banner from another site: `<img src="https://ads.com/banner.png">`.
352352
2. Along with the banner, the remote server at `ads.com` may set `Set-Cookie` header with cookie like `id=1234`. Such cookie originates from `ads.com` domain, and will only be visible at `ads.com`:
353353

354354
![](cookie-third-party.png)
@@ -357,7 +357,7 @@ For instance:
357357

358358
![](cookie-third-party-2.png)
359359

360-
4. What's even more important, when the users moves from `site.com` to another site `other.com` that also has a banners, then `ads.com` gets the cookie, as it belongs to `ads.com`, thus recognizing the visitor and tracking him as he moves between sites:
360+
4. What's even more important, when the users moves from `site.com` to another site `other.com` that also has a banner, then `ads.com` gets the cookie, as it belongs to `ads.com`, thus recognizing the visitor and tracking him as he moves between sites:
361361

362362
![](cookie-third-party-3.png)
363363

0 commit comments

Comments
 (0)