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 !!
Written by Peter Zhang
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Cross-domain
Authors
peterpengnz
2.824K
lenny
1.526K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#