Coder Social home page Coder Social logo

Comments (7)

gboone avatar gboone commented on June 23, 2024

Is this a related problem? I get the following console message about the font file on a local build:

Font from origin 'http://18f.github.io' 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://0.0.0.0:4000' 
is therefore not allowed access. 0.0.0.0/:1

from dashboard.

meiqimichelle avatar meiqimichelle commented on June 23, 2024

Probably, since we're currently telling the font file explicitly to load from github.io rather than local.

from dashboard.

gboone avatar gboone commented on June 23, 2024

This is done, right?

from dashboard.

meiqimichelle avatar meiqimichelle commented on June 23, 2024

Well, we just gave up on running it locally ;) The code to comment/uncomment if you do want to see it locally is in there tho (if we didn't delete it).

from dashboard.

konklone avatar konklone commented on June 23, 2024

I actually think this is workable -- I believe that CSS references to external files are relative to the location of the CSS file itself. So the CSS should be able to say url(../fonts/18f-font.ttf) and that should work in local, staging, and production, regardless of whether the site is mounted at /dashboard or /.

from dashboard.

meiqimichelle avatar meiqimichelle commented on June 23, 2024

Right -- the issue is that the font is on the 18f.gsa.gov repo, not /dashboard. This is related to the 'how to we keep all the subpage styles in sync with main 18f styles if we're running in separate repos' problem.

from dashboard.

meiqimichelle avatar meiqimichelle commented on June 23, 2024

Oh, sorry -- I see what you're saying @konklone . Maybe -- we can try!

from dashboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.