ant-design Nonce is not applied to inline styles

suzh9iv8  于 2023-02-04  发布在  其他
关注(0)|答案(2)|浏览(153)

Steps to reproduce

Examine the console, note all the blocks of css and that they do not have a nonce.
Click on the button to show the icon, examine the console, note the first entry has a nonce, others do not.

What is expected?

Every single block of inline style produced by ant to include the nonce when it is configured through ConfigProvider

What is actually happening?

Nonce is very rarely applied to inline styles

EnvironmentInfo
antd5.1.6
React17.0.2
SystemAny
BrowserChrome

This issue has come up repeatedly and the issues have been closed without the issue actually being fixed. This is a huge issue for sites that need to have strict CSP's. Please apply the patch to 4.x as well.

相关问题