Add the above three lines to an .htaccess
file to enable CORS for that folder and its subfolders. Of course, you could also add this to the httpd.conf
file if you have access.
###Notes:
- Ensure that the mod_headers Apache Module is enabled.
- This will open things up pretty grandly. This may or may not be what you want.
###Disclaimer
- Do at your own risk, etc. etc.
- My Apache-fu is weak, so there may well be a better solution.
For CORS, even though the documentation states to use 'SET', it is recommended to use 'ADD' as that will work on most systems. If you notice that when you use the above code and you are still receiving the pre-flight or CORS errors, change 'set' to 'add' and you will most likely be fine.