[英]XMLHttpRequest : Not allowed by Access-Control-Allow-Origin
XMLHttpRequest cannot load http://example.mobi/. Origin http://www.example.mobi is not allowed by Access-Control-Allow-Origin.
在两个相同的域上如何有相同的原点错误?
note the url is different, www is considered a default subdomain under your app and when you request http://example.mobi it is assumed to be a different url.. You should use relative urls and let the browser query the right url.. 请注意,URL是不同的,www被认为是应用程序的默认子域,当您请求http://example.mobi时 ,假定它是不同的URL。。应使用相对URL,并让浏览器查询正确的URL。 。
hope that helps.. 希望能有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.