Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
kiliancs wants to merge 1 commit intoxobotyi:masterfrom
kiliancs:master
Open

Stop requiring style-src 'unsafe-inline' CSP#472
kiliancs wants to merge 1 commit intoxobotyi:masterfrom
kiliancs:master

Conversation

Copy link

kiliancs commented Oct 13, 2023 *
edited
Loading

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant