By mvecera
I am hosting my fonts in spaces - this is the CSS file - https://lumeer-cdn.ams3.digitaloceanspaces.com/latofonts.limited.min.css
During development, the application using this CSS file is hosted on http://localhost:7000. This domain cannot be added in CORS settings (the submit button stays disabled). So I added “*” wildcard. The browser can download the CSS file, but it refuses to download the font files:
Access to font at 'https://lumeer-cdn.ams3.cdn.digitaloceanspaces.com/fonts/Lato-Bold.woff' from origin 'http://localhost:7000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Is there a way to add the headers or any other way to make it work?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hey friend,
In talking with one of our engineers on this, it was suggested that this article may lead you in the right direction. Although it’s meant for another platform, ours is similar in that this advice should translate:
Jarland
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.