Skip to content

Commit c6b6bc3

Browse files
authored
Update article.md
A small grammar change and fixing a typo (I think) (no -> not).
1 parent f3e4ebb commit c6b6bc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

2-ui/5-loading/03-onload-onerror/article.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ That's for historical reasons.
107107

108108
There's a rule: scripts from one site can't access contents of the other site. So, e.g. a script at `https://facebook.com` can't read the user's mailbox at `https://gmail.com`.
109109

110-
Or, to be more precise, one origin (domain/port/protocol triplet) can't access the content from another one. So even if we have a subdomain, or just another port, these are different origins, no access to each other.
110+
Or, to be more precise, one origin (domain/port/protocol triplet) can't access the content from another one. So even if we have a subdomain, or just another port, these are different origins with no access to each other.
111111

112112
This rule also affects resources from other domains.
113113

@@ -159,7 +159,7 @@ Details may vary depending on the browser, but the idea is the same: any informa
159159

160160
Why do we need error details?
161161

162-
There are many services (and we can build our own) that listen for global errors using `window.onerror`, save errors and provide an interface to access and analyze them. That's great, as we can see real errors, triggered by our users. But if a script comes from another origin, then there's no much information about errors in it, as we've just seen.
162+
There are many services (and we can build our own) that listen for global errors using `window.onerror`, save errors and provide an interface to access and analyze them. That's great, as we can see real errors, triggered by our users. But if a script comes from another origin, then there's not much information about errors in it, as we've just seen.
163163

164164
Similar cross-origin policy (CORS) is enforced for other types of resources as well.
165165

0 commit comments

Comments
 (0)