How to add Cors for apache & nginx without error?

Started by mrr-r, February 04, 2020, 09:21:39 AM

Previous topic - Next topic

mrr-r

hello,
How to add Cors for apache & nginx without error?
please help!

rcschaff

Apache is easy: https://enable-cors.org/server_apache.html

Nginx is a bit more painful.  You have to set it in all locations as I am aware.
Check out this article.    They recommend creating a file with the parameters, and including it in the top of each server block.  On CWP, DO NOT name it .conf, or it will crash the server. 

try cors.include or something like that.
Google Hangouts:  rcschaff82@gmail.com