Skip to content

Conversation

kiliancs
Copy link

@kiliancs kiliancs commented Oct 13, 2023

Description

Addresses #469.

Setting the style attribute on an element violates stricter CSP and requires a policy of style-src 'unsafe-inline'. Setting each style in the style property of the element resolves this issue.

Use case

A safe application with a strict CSP. See https://codesandbox.io/s/autumn-fast-n5p48h?file=/public/index.html and #469 for more details.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • Perform a code self-review
  • Comment the code, particularly in hard-to-understand areas
  • Update/add the documentation
  • Write tests
  • Ensure the test suite passes (yarn test)
  • Provide 100% tests coverage

Addresses xobotyi#171.

Setting the `style` attribute on an element violates stricter CSP and
requires a policy of `style-src 'unsafe-inline'`. Setting each style in
the style property of the element resolves this issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant