Skip to content

Non-ASCII characters in CSP policy. #473

Closed
@antosart

Description

@antosart

When a CSP policy contains non-ASCII characters, it looks like:

  • according to the spec, the whole policy should be discarded.
  • Firefox tries to parse the CSP and discards only the source expression (assuming the non-ASCII character is in a source expression).
  • Chrome and Safari try to parse the CSP and discard the whole directive containing the non-ASCII character (but not other directives).

See also https://bugs.chromium.org/p/chromium/issues/detail?id=1172497

I think we should agree on a behaviour here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    i18n-trackerGroup bringing to attention of Internationalization, or tracked by i18n but not needing response.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions