Skip to content
This repository was archived by the owner on Jul 18, 2022. It is now read-only.

Local development - Fonts + CORs error #49

Open
deybhayden opened this issue Aug 9, 2021 · 0 comments
Open

Local development - Fonts + CORs error #49

deybhayden opened this issue Aug 9, 2021 · 0 comments

Comments

@deybhayden
Copy link

Hey there, thanks for the great theme! I'm new to Gatsby and decided to rebrand my site using your template but ran into an interesting console message. The message results in the Inconsolata font not loading and until I installed Inconsolata is a local font, it rendered as just the generic monospace font.

Access to font at 'https://example.com/fonts/Inconsolata-Regular.woff2' from origin 'http://localhost:8000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

I get this when I run the npm run develop command.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant