Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

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

Avatar

Level 4

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
Community Advisor
1 Reply

Avatar

Correct answer by
Community Advisor