Enable cross-origin resource sharing for AJAX

A common problem when dealing with AJAX scripts is that the server script (or API) which javascript is calling is required to be on exactly the same domain (subdomain included).  To open up your server script / API to all domains the following headers are required to be sent before any content: Access-Control-Allow-Origin: * Access-Control-Allow-Headers:… Continue reading Enable cross-origin resource sharing for AJAX