CORS Error - How to fix it

CORS Error - How to fix it

Notes
Note: the below solutions are only applicable for Apache webservers. Using Nginx? Then please contact your hosting.
How to check if you are using Apache or Nginx: via WP Admin Menu > Tools > Site Health > Info > Server tab. 

Apache / Litespeed webservers:

Are you seeing a CORS error in our app? This means that our app cannot access your store's api due to some server restrictions. This is normal and it means your server is well protected. To ensure your server whitelists our app, you need to do either one of the 2 things:

1. Please enable CORS via our plugin settings. This will allow CORS via PHP methods without changing server files like htaccess. 


2. If the above still does not resolve the error, then please disable that (turn off toggle).
Now search for "Enable CORS" on the plugin directory:


Then configure the settings like this:



This will modify the .htaccess file and ensure the CORS error is resolved. 

Nginx webservers: 

You can modify your nginx configuration file using this solution: https://enable-cors.org/server_nginx.html
If you are unable or lack technical experience, please contact your Hosting support to do it for you!