Skip to content

[BUG] Fonts not loading due to Content Security Policy #1215

Description

@Goldfels

When loading a board, the fonts on the board do not get loaded, and I see a lot of error messages in the brower's console, such as:

Content-Security-Policy: The page’s settings blocked the loading of a resource (font-src) at https://esm.sh/@nextcloud/excalidraw@0.18.0-6135eb0/dist/prod/fonts/Excalifont/Excalifont-Regular-a88b72a24fb54c9f94e3b5fdaa7481c9.woff2 because it violates the following directive: “font-src 'self' data:”

I suspect this is a bug introduced by #1196 which removed the line $policy->addAllowedFontDomain('*'); causing fonts to no longer be loaded.

Tested Whiteboard version 1.5.8, on Nextcloud version 33.0.3.2, with a brand new, empty installation.

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