Can a JavaScript hosted on different domain read/modify DOM of another domain?

后端 未结 2 383
南笙
南笙 2021-02-06 04:07

I have a question regarding a potential security issue/limitation regarding JavaScript hosted on a domain (ex: domain of a CDN, say example.com), but loaded from a website under

2条回答
  •  说谎
    说谎 (楼主)
    2021-02-06 04:47

    All URL based security restrictions in client side JavaScript are based on the URL of the webpage containing the

提交回复
热议问题