L ljubacanoa Member Feb 26, 2023 #1 Feb 26, 2023 #1 Hello, What will be proper CORS syntax in Console for .htaccess formated syntax below Apache config: <FilesMatch "\.(?:ttf|eot|woff|otf)$"> Header set Access-Control-Allow-Origin "*" </FilesMatch>
Hello, What will be proper CORS syntax in Console for .htaccess formated syntax below Apache config: <FilesMatch "\.(?:ttf|eot|woff|otf)$"> Header set Access-Control-Allow-Origin "*" </FilesMatch>
wade New Member Mar 1, 2023 #2 Mar 1, 2023 #2 Dear Here is a CORS reference for you: https://openlitespeed.org/kb/setting-up-cors-on-openlitespeed/ 1. Add CORS extra header through OLS Web Admin console 2. edit the file /usr/local/lsws/conf/vhosts/Example/vhconf.conf Apache config: context / { location $DOC_ROOT/ allowBrowse 1 extraHeaders Access-Control-Allow-Origin * rewrite { RewriteFile .htaccess } addDefaultCharset off phpIniOverride { } }
Dear Here is a CORS reference for you: https://openlitespeed.org/kb/setting-up-cors-on-openlitespeed/ 1. Add CORS extra header through OLS Web Admin console 2. edit the file /usr/local/lsws/conf/vhosts/Example/vhconf.conf Apache config: context / { location $DOC_ROOT/ allowBrowse 1 extraHeaders Access-Control-Allow-Origin * rewrite { RewriteFile .htaccess } addDefaultCharset off phpIniOverride { } }