Nonce for Custom Elements

Vinoth kumar Ramasamy - Sep 5 - - Dev Community

Im not sure this is the right forum. But, I need a help deperately on this.

I have written angular custom element like below

customElements.define('my-comp', createCustomElement(BasicComponent, config));

and will provide as js file after build using npm run build-elements so that the other client applications can add this in the script tag and use this my-comp.

So, Can someone please advise, how can we set the nonce value especially for the custom elements so that the angular generated dynamic styles are applied with nonce attribute?

.
Terabox Video Player