New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

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