Securing the License File

0 Answers 16 Views
Licensing
Christopher
Top achievements
Rank 1
Christopher asked on 06 Feb 2024, 01:22 PM
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:

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'
);

No answers yet. Maybe you can help?

Tags
Licensing
Asked by
Christopher
Top achievements
Rank 1
Share this question
or