-2

Displays this error message.

Font from origin 'http://127.0.0.1' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access.

Risadinha
  • 16,058
  • 2
  • 88
  • 91
  • Tried to google [some](http://stackoverflow.com/questions/20035101/no-access-control-allow-origin-header-is-present-on-the-requested-resource)? – Tpojka Aug 22 '16 at 02:11

1 Answers1

1

Add this code in htaccess file..

# Allow access from all domains for webfonts.
# Alternatively you could only whitelist your
# subdomains like "subdomain.example.com".
<IfModule mod_headers.c>
  <FilesMatch "\.(ttf|ttc|otf|eot|woff|font.css|css)$">
    Header set Access-Control-Allow-Origin "*"
  </FilesMatch>
</IfModule>
Kumar Rakesh
  • 2,718
  • 2
  • 18
  • 39