Unable to add the nonce to the client library java script files | Community
Skip to main content
May 22, 2024
Solved

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

  • May 22, 2024
  • 1 reply
  • 690 views

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>
 
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

sravs
Community Advisor
sravsCommunity AdvisorAccepted solution
Community Advisor
May 22, 2024