开发者

Ajax cross application on same machine

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜