Problems using font-face on the site

Asked

Viewed 63 times

0

I am using font-face on my site and it loads normally when typing the link with www.ksleague.com, however, when typing the link without www, it does not pull the font-face. How am I supposed to fix this?

1 answer

0


Instead of using the entire .css, use the relative path:

Instead of "http://www.ksleague.com/_css/component.css"

Use "_css/component.css"

This is because when using the whole path, it may give "same origin policy" error if you omit "www" in the site address.

  • Thanks, it helped a lot and it worked!

  • @Marcosfelipe Thanks! Success!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.