Last Updated: February 25, 2016
·
2.679K
· peterpengnz

Cross domain Ajax requests for Apache

Put following configuration to your server's apache configuration file:

<ifModule mod_headers.c>
    Header set Access-Control-Allow-Origin: *
    Header set Access-Control-Allow-Headers: X-Requested-With
</ifModule>

Only recommended for testing and development purpose !!