0
XMLHttpRequest cannot load http://example.mobi/. Origin http://www.example.mobi is not allowed by Access-Control-Allow-Origin.

How is it possible to have same origin error on two domains that are the same?

1
  • I think that the key to this is lack of www :) Commented Aug 20, 2012 at 7:39

1 Answer 1

1

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..

hope that helps..

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.