Skip to content

Commit 9ad383c

Browse files
committed
docs: clarify nonce usage for CSP compliance in createWebComponent function
1 parent 536bf53 commit 9ad383c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const createWebComponent = ({
1717
asyncInitialization = () => Promise.resolve(),
1818
loaderAttribute = 'data-web-component-loader',
1919
hideSlotContentUntilMounted = false,
20-
nonce
20+
nonce // Used for Content Security Policy (CSP) compliance - will be applied to inline styles
2121
}) => {
2222
if (!rootComponent) {
2323
console.warn('No root component provided. Please provide a root component to create a web component.')

0 commit comments

Comments
 (0)