Skip to content

__mf crashes with EvalError under a restrictive Content-Security-Policy #545

@andersk

Description

@andersk

When using __mf in a website with a Content-Security-Policy that does not allow unsafe-eval, __mf crashes with EvalError: Code generation from strings disallowed for this context.

The upstream issue suggests this will not be fixed in @messageformat/core, and suggests switching to intl-messageformat.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions