To ensure that your changes are correct, strongly recommended that you use
apachectl -t |
to checck your configuration changes for errors. After this passes, you may need to reload Apache to make sure your changes are applied by running the command
sudo service httpd restart |
To avoid CORS errors, following configs needs to be added to fully CORS-enable an Apache web server at the end of /etc/httpd/conf/httpd.conf
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Headers "*"
Header set Access-Control-Allow-Methods "*"
</IfModule> |