Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
chncdcksn
· 9y ago · 0 comments
I may be wrong, but I don't think JavaScripts from a CDN can access the same localStorage as some JavaScript from another origin. (Source: "Cross-origin data storage access"
https://developer.mozilla.org/en-US/docs/Web/Security/Same-o...
)
Comments
[–]
tprynn
9y ago
You are wrong. The 'origin' of a script is the domain which loads it, not the domain where it is hosted. (Those can be the same, though.)
[–]
chncdcksn
OP
9y ago
TIL. Thanks!