While security testing through OWASP ZAP, a medium risk issue 'Sub Resource Integrity Attribute Missing' is flagging because kendo.all.min.js internally loads pdf.worker.mjs from Cloudflare CDN without SRI hash.
How to resolve this?
1 Answer, 1 is accepted
0
Anton Mironov
Telerik team
answered on 09 Apr 2026, 05:59 AM
Hello Sachith,
Thank you for the details provided.
The Kendo UI for ASP.NET MVC library does not provide a built-in way to add a Subresource Integrity (SRI) attribute for scripts like pdf.worker.mjs that are loaded internally by kendo.all.min.js from the CDN. This is a limitation because the resource is loaded dynamically and the SRI attribute cannot be set.
To address this, you can host pdf.worker.mjs locally within your application and configure Kendo UI to load it from your server instead of the CDN. This way, you have full control over the file and can ensure its integrity. Here’s how you can do it:
Download pdf.worker.mjs from the CDN and place it in your project, for example under /Scripts/pdf.worker.mjs.
Configure Kendo UI to use the local worker file. If you are using the PDF export feature, set the worker URL as follows: