This documentation shows how to implement Kyvorn API into your UI/app
textContent
instead of putting the entire thing in innerHTML
, which is insecure and can cause these vulnerabilities.Out of date: This example is missing important new updates to the Kyvorn library that should be included in your website. Do not use it for production.||
block in our JS.
card.innerHTML
you can see our line of code:
https://cdn.peretas.tech/imgfailed.png
when script.scriptInfo.bannerUrl
is equal to null
. In HTML, you can also use the onerror
element to change the URL when it errors out: