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
- 72,859
- 23
- 167
- 174
VA1267
- 145
- 7
-
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