CORS Solution not working
-
Hi,
The set-up went well but the snippet to fix the CORS Policy error didn’t do it.
<FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css)$"> <IfModule mod_headers.c> Header add Access-Control-Allow-Origin "*" Header set Access-Control-Allow-Origin "*" </IfModule> </FilesMatch>
Part of my htaccess file looks like this:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> <IfModule mod_php7.c> php_value memory_limit 256M </IfModule> # END WordPress # BEGIN AWS CDN <FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css)$"> <IfModule mod_headers.c> Header add Access-Control-Allow-Origin "*" Header set Access-Control-Allow-Origin "*" </IfModule> </FilesMatch> # END AWS CDN
This is one of the tutorials I followed for the AWS Setup:
Setup AWS CloudFront for WordPress
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘CORS Solution not working’ is closed to new replies.