Skip to content

CSP enabled DevTool show errors (insert inline style) #3495

@NewFuture

Description

@NewFuture

Describe the bug

When CSP enabled, (Style-SRC='xxx')

the console error

 Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self' 'nonce-0mihlgp7' 'report-sample'

Your minimal, reproducible example

https://codesandbox.io/s/heuristic-cannon-it3v0r?file=/public/index.html

Steps to reproduce

  1. start the app
  2. open the app in single window
  3. open the console and refresh

Expected behavior

No errors or passing the nonce as params

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

Browsers

react-query version

3.34.19

TypeScript version

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    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