开发者

Ajax cross application on same machine

开发者 https://www.devze.com 2023-03-31 08:46 出处:网络
I have 2 applications running on the same machine: node.js app running on po开发者_StackOverflow社区rt 15000

I have 2 applications running on the same machine:

Both are served through nginx front end (each app defined as a virtual host)

Ajax requests from the javascript app (requesting resources from the node.js app) are not working.

Is this linked to restriction of Ajax for cross domain ? The domain is the same (only the port are differents).

Any idea ?


Different ports are seen as a different domains.

MDC Same Origin Policy


Yes, limiting requests on same domain to different port

Same origin policy

https://developer.mozilla.org/en/Same_origin_policy_for_JavaScript
http://en.wikipedia.org/wiki/Same_origin_policy

0

精彩评论

暂无评论...
验证码 换一张
取 消