How To Allow Cross-Site Javascript Using Apache

Published Date Author: , Posted September 24th, 2015 at 3:43:52pm

The key is to send a response header like this:
Access-Control-Allow-Origin: *

In the Apache web server, one enables this via the following directive:
Header set Access-Control-Allow-Origin *

This requires the use of mod_headers, which is enabled by default in Apache.
For example:

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.