Same origin host, different ports in JS

前端 未结 1 401
迷失自我
迷失自我 2020-12-11 02:24

for the two hosts

http://1.com.local/
http://2.com.local:8080/

how can I use document.domain to enable DOM-Manipulation betwee

相关标签:
1条回答
  • 2020-12-11 02:52

    You cannot. Sorry - same origin is including the ports

    You can use CORS and ajax to copy some stuff from one server to the other if you enable this.

    0 讨论(0)
提交回复
热议问题