...
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
Code Block |
---|
<IfModule mod_headers.c> Header set Access-Control-Allow-Origin "http://127.0.0.1:3000" Header set Access-Control-Allow-Origin "http://127.0.0.1" Header set Access-Control-Max-Age "300" Header set Access-Control-Allow-Credentials "true"*" Header set Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept*" Header set Access-Control-Allow-Methods "POST, GET, PUT, DELETE, PATCH, OPTIONS*" </IfModule> |