@ font-face is only displayed when www. wrong address. Only domain name displayed correctly

I have a client site in Wordpress, and in Firefox 4 on my PC @ font-face looks great when www. not specified. However, if you visit the full URL, it no longer works.

I'm at a dead end. Any thoughts?

+3
source share
2 answers

It looks like you are pushing the default Firefox font policy.

Firefox does not allow cross-domain fonts by default (even with sub-domains). For excellent help in this area, see the following questions:

@ font-face fonts only work in their own domain

How to add Access-Control-Allow-Origin header

+4
source

- (../fonts/font-name.ttf) (/fonts/font-name.ttf) , (Fully Qualified Domain Name) @font-face src (http://www.example.com/fonts/font-name.ttf).

, , CSS ( ), , , .

URL- WordPress , .

, :

http://example.com/about

CSS :

http://www.example.com/css/screen.css

( , CSS, . , , "www", ).

- Apache URL- , WordPress.

example.com -> www.example.com ( )

, , , , .

0

All Articles