Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

CORS Error for FontAwesome Icons

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
pramathesh
Posts: 12
Joined: Mon May 01, 2017 8:38 am

CORS Error for FontAwesome Icons
  • Quote

Post by pramathesh » Sat Jul 22, 2017 5:58 am

I'm trying to enable font awesome icons for my WordPress installation via CDN but I keep getting the following error for the fonts.

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.
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

Code: Select all

location ~* \.(eot|css|otf|ttf|woff)$ {
add_header Access-Control-Allow-Origin *;
}
I've not had any success yet. Can someone point out the error here and guide me in resolving the same.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: CORS Error for FontAwesome Icons
  • Quote

Post by skurudo » Wed Jul 26, 2017 6:30 am

viewtopic.php?f=10&t=10166#p36700

If this don't fit, then please explain, how you test this CORS issue?
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password