My website throws CORS error when running on VPS with Litespeed, but works fine on my local machine which uses Apache (MAMP).
It seems it is unable to read the .htaccess file.
Is there any special configuration that needs to be set up?
I read this documentation on OpenLiteSpeed, but that applies to the LiteSpeed admin.
https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:config:cors
The .htaccess file in question looks like:
<IfModule mod_headers.c>
<FilesMatch "\\.(pdf)$">
Header set Access-Control-Allow-Origin "http://localhost:3000"
</FilesMatch>
</IfModule>