Skip to content

[Question] Content Security Policy inline style #1334

@douglaswissett

Description

@douglaswissett

Hi,

I'm working on a project with Content Security Policy enabled.

When I import this library I get errors like this in the console:
Refused to apply inline style because it violates the following Content Security Policy

Screenshot 2020-09-29 at 10 15 09

Screenshot 2020-09-29 at 10 17 53

  1. Does this library support a way to remove inline styles?

  2. Is there a recommended approach to extracting inline css styles and moving them to a dedicated css file?

Relaxing CSP to allow inline/unsafe styles isn't an option.

Thanks.

Metadata

Metadata

Assignees

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