If I have a <img>
tag and with src of another origin, will it be blocked by the same-origin policy by default
Asked
Active
Viewed 25 times
0

sideshowbarker
- 81,827
- 26
- 193
- 197

VA1267
- 311
- 1
- 8
-
1No: https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy#cross-origin_network_access – jub0bs Nov 20 '21 at 12:39
-
@jub0bs ok. What about xmlhttprequest with different url? – VA1267 Nov 20 '21 at 12:41
-
See the duplicate, in particular the section headed "Why you can display data in the page without reading it with JS". – Quentin Nov 20 '21 at 23:29