Hello @cgidds
I think you posted in the incorrect forum. This isnt a support for AWS for WordPress
Thread Starter
cgidds
(@cgidds)
Thanks. I’ll post it in the correct thread.
Thread Starter
cgidds
(@cgidds)
@luckychingi
I’ve now moved over to your plugin (which I do like a lot better) and still getting the same error. The plugin is currently enabled. Can you take a look at it for me and see what is needed?
@cgidds
Can you tell me the web server on which the site is hosted on?
Thread Starter
cgidds
(@cgidds)
@luckychingi it runs on apache (EC2 Ubuntu instance).
Thread Starter
cgidds
(@cgidds)
@luckychingi My apologies. Here’s the corrected error message:
Access to font at https://d1bcggxiwgvo9q.cloudfront.net/wp-content/themes/grace-church/css/fontello/font/fontello.woff2?10977599 from origin https://bethelatx.com has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
-
This reply was modified 5 years, 2 months ago by
cgidds.
Thread Starter
cgidds
(@cgidds)
@luckychingi any chance you’ve been able to nail this down any further? I currently still have it enabled but need to disable it for the weekend.
Hello @cgidds
sorry, I wasnt able to check
Thread Starter
cgidds
(@cgidds)
@luckychingi when will get a chance to look at this again? I’ll re-enable the distribution when you’re ready.
@cgidds
I apologize for the delay, have a few projects in pipeline and wont be able to test for the new few weeks.
Thread Starter
cgidds
(@cgidds)
@luckychingi
Can you give me an update on when you’re able to test this? I just need to re-enable when you’re ready.
Hello @cgidds
We have released a new version today. Hopefully this should help with CORS issue.
Please try out and let me know
Thread Starter
cgidds
(@cgidds)
@luckychingi we’re still having the same issue. here’s the site: https://bethelatx.com/
If you scroll to the bottom of the page, you’ll see social media icons error’ing out due to CORS errors.
Access to font at 'https://d1bcggxiwgvo9q.cloudfront.net/wp-content/plugins/js_composer/assets/lib/bower/font-awesome/webfonts/fa-solid-900.woff2' from origin 'https://bethelatx.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
And this is in the .htaccess AFTER the WordPress additions:
##### Added By AWS CDN Plugin #####
<FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|fontello.woff2)$">
<IfModule mod_headers.c>
Header add Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
Thanks @cgidds
Could you try adding ‘fontello’ in the wildcard box?