Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop requiring style-src 'unsafe-inline' CSP #472

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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