We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
CORS Error for FontAwesome Icons
-
- Posts: 12
- Joined: Mon May 01, 2017 8:38 am
CORS Error for FontAwesome Icons
I'm trying to enable font awesome icons for my WordPress installation via CDN but I keep getting the following error for the fonts.
I've tried adding the code below to /home/admin/web/conf/nginx.conf & sniginx.conf and also to /etc/nginx/conf.d/internalip.conf file
I've not had any success yet. Can someone point out the error here and guide me in resolving the same.
Code: Select all
Access to Font at 'https://cdn.mydomain.com/wp-content/themes/atelier/css/font/si-atelier.woff?-7oeevn' from origin 'https://scicon.co' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://scicon.co' is therefore not allowed access.
Code: Select all
location ~* \.(eot|css|otf|ttf|woff)$ {
add_header Access-Control-Allow-Origin *;
}
Re: CORS Error for FontAwesome Icons
viewtopic.php?f=10&t=10166#p36700
If this don't fit, then please explain, how you test this CORS issue?
If this don't fit, then please explain, how you test this CORS issue?