Has anyone or does anyone do anything to secure their license file outside of what Telerik recommends? This way the plain text file isn't just available to anyone accessing your website.
Mihaela
Telerik team
commented on 07 Feb 2024, 09:04 PM
To avoid referencing the kendo-ui-licese.js file in the _Layout.cshtml file, you can include the Kendo UI client-side resources through LibMan by following the instructions in the article below:
Instead of adding the kendo-ui-licese.js file in the _Layout.cshtml file, as described in the last step, you can register the key in the entry,js file and then bundle the scripts with the "npm run build" command:
To avoid referencing the kendo-ui-licese.js file in the _Layout.cshtml file, you can include the Kendo UI client-side resources through LibMan by following the instructions in the article below:
https://docs.telerik.com/aspnet-core/installation/adding-client-side-resources/using-libman
Instead of adding the kendo-ui-licese.js file in the _Layout.cshtml file, as described in the last step, you can register the key in the entry,js file and then bundle the scripts with the "npm run build" command:
//entry.js require("jquery") window.$ = window.jQuery = $ require("../lib/kendo-ui/2024.1.130/js/kendo.all") require("../lib/kendo-ui/2024.1.130/js/kendo.aspnetmvc") KendoLicensing.setScriptKey( 'paste key here' );