Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

Unable to add the nonce to the client library java script files

Avatar

Level 3

Hi,

 

I have used the nonce attribute to while loading the clientlib.js files, but some how it not working. The nonce it not adding to the script tags.

 

<sly data-sly-use.clientlib="/libs/granite/sightly/templates/clientlib.html">
  <sly data-sly-call="${clientlib.js @ categories='project.base',defer=true,nonce='brcmtd2409pThL2s9R8o9Q=='}"/>
</sly>
 
1 Accepted Solution

Avatar

Correct answer by
Level 9
1 Reply

Avatar

Correct answer by
Level 9