I have 2 applications running on the same machine:
- node.js app running on po开发者_StackOverflow社区rt 15000
- a full javascript application running on port 15001
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
精彩评论