Are AJAX calls to a sub-domain considered Cross Site Scripting?

后端 未结 2 1864
情深已故
情深已故 2020-12-14 15:32

I have Server A (www.example.com) sending information to Server B. I can only have HTML / JS on Server A (and have to do the \"crunching\" on Server B) so I\'m trying to sen

2条回答
  •  长情又很酷
    2020-12-14 16:18

    Sub-domains are considered different and will fail the Same Origin Policy unless both sub-domains declare the same document.domain DOM property (and even then, different browsers behave differently).

提交回复
热议问题