Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3974836
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:36:53+00:00 2026-05-20T04:36:53+00:00

I am designing a website (e.g. mywebsite.example ) and this site loads font-face fonts

  • 0

I am designing a website (e.g. mywebsite.example) and this site loads font-face fonts from another site (say anothersite.example). I was having problems with the font face font loading in Firefox and I read on this blog:

Firefox (which supports @font-face
from v3.5) does not allow cross-domain
fonts by default. This means the font
must be served up from the same domain
(and sub-domain) unless you can add an
“Access-Control-Allow-Origin” header
to the font.

How can I set the Access-Control-Allow-Origin header to the font?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T04:36:54+00:00Added an answer on May 20, 2026 at 4:36 am

    So what you do is… In the font files folder put an htaccess file with the following in it.

    <FilesMatch "\.(ttf|otf|eot|woff|woff2)$">
      <IfModule mod_headers.c>
        Header set Access-Control-Allow-Origin "*"
      </IfModule>
    </FilesMatch>
    

    also in your remote CSS file, the font-face declaration needs the full absolute URL of the font-file (not needed in local CSS files):

    e.g.

    @font-face {
        font-family: 'LeagueGothicRegular';
        src: url('http://www.example.com/css/fonts/League_Gothic.eot?') format('eot'),
             url('http://www.example.com/css/fonts/League_Gothic.woff') format('woff'),
             url('http://www.example.com/css/fonts/League_Gothic.ttf') format('truetype'),
             url('http://www.example.com/css/fonts/League_Gothic.svg')
    
    }
    

    That will fix the issue. One thing to note is that you can specify exactly which domains should be allowed to access your font. In the above htaccess I have specified that everyone can access my font with "*" however you can limit it to:

    A single URL:

    Header set Access-Control-Allow-Origin http://example.com

    Or a comma-delimited list of URLs

    Access-Control-Allow-Origin: http://site1.com,http://site2.com

    (Multiple values are not supported in current implementations)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are currently designing a website that will be accessed from kiosks in a
I'm having a bit of trouble designing the user login/logout mechanism of my website
I'm designing a website using PHP and MySQL currently and as the site proceeds
When designing a website, what do you consider the best image format to use
Im designing a website, and often I need to present information in a nice
Currently I am designing a website and I am finding it VERY difficult to
I've been designing a website and when testing it I normally run it by
I am designing a website.I want to validate the mobile no. entered by the
Does anyone have some guidelines or links to articles when designing a website that
back story: I am designing a portfolio website for myself. on its home page,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.