Ensure the expression is protected by using EncodeHTML(), EncodeJavascript(), or SanitizeHtml() from the Sanitization extension, to avoid security flaws. I am getting this error from the service studio, how to fix this javascript injection.The recommended solution is to use the
EncodeJavascript EncodeJS
Hey @Naveen N ,
Follow the below steps :
1)Manage dependency and add "SanitizeHtml"
2)Set the expressions Escape Content as NO
3)Wrap the script inside SanitizeHtml.
4)Check again the Escape content which must be set as NO
This steps will resolve your problem!!
Thanks & Regards,
Sudip Pal
@Sudip Pal Thank you, let me check and let you know.
cool that works !!!!!!!!!!!!! ,
you are awesome, thank you for your response. @Sudip Pal
Yeah Sure, please let me know. I believe it will definitely work.
If it does not work, I will try another approach.
Sure will let you know if i face any issues, Thanks.
@Sudip Pal I am not facing the issue in service studio now, but in architecture dashboard still it is showing the issue exist, even i did twice the manual sync.
Architecture Dashboard takes time to sync .
Wait for few hours.I am not sure but it takes around 12 hours.
Yes, for that reason we did the sync manually twice.