Today, I got this error in Chrome as I was trying to make a HTTP request from localhost:8400 to localhost:2081:

XMLHttpRequest cannot load http://localhost:2080. Origin http://localhost:8400 is not allowed by Access-Control-Allow-Origin.

I know about Cross-site requests and I’m aware the reasons behind disallowing it but I’m a little surprised that these limitations apply to the same domains but different ports.

10 thoughts on “Access-Control-Allow-Origin

  1. hharnisc thanks a lot, forgot to add a ‘magic’ string at the end like callback=? and it works fine now:) thanks once again

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s