Browsers traditionally, are a little particular about who you POST to.. For instance, using AJAX to post to a server from another domain can be blocked if the right headers are not included in the response. Some call this Cross Domain AJAX.

Simply put, you need to implement Cross-Origin Resource Sharing. In most browsers, that means including the following header:

Access-Control-Allow-Origin: *

You can also whitelist ...


For versions of internet explorer, you may need to use the XDomainRequest object. Some browsers simply dont support it and you need to use alternatives to support them, however that comes with its own set of security considerations.

Good article here:

For the propellerheads: