Skip to content

CORS error when fonts #309

@banyalis

Description

@banyalis

Hi!
I use static files and fonts, there are no CORS errors with js and css.
The error is only on the fonts, what could be the problem?
Example settings:

app.use(
    cors({
        origin: ['https://myurl.com'],
        methods: ['GET', 'POST', 'DELETE', 'UPDATE', 'PUT', 'PATCH', 'OPTIONS'],
        allowedHeaders: ['Origin', 'X-Requested-With', 'Content-Type', 'Accept']
    })
);

app.use(express.static('public'));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions