Cross-domain difference between script, link and img tags

The so-called cross-domain is caused by the browser's same-origin policy. Protocol, domain name
script, img, link tags are not affected by cross-domain.
However, the img and link tags can only achieve one-way communication, that is, data can only be transmitted from the client to the server. This is because img obtains images for loading, link obtains style sheet loading, and script returns javascript code execution.

Guess you like

Origin blog.csdn.net/m0_38038767/article/details/109723797