rjaros / kvision

Object oriented web framework for Kotlin/JS
https://kvision.io
MIT License
1.23k stars 65 forks source link

Request - support for crossorigin attribute in Image (and others) #505

Closed reubenfirmin closed 9 months ago

reubenfirmin commented 9 months ago

Use case: I am using a third party library (html-to-image) to export a full canvas of my application. It apparently fetches all external resources, and turns off cors checking if the external resource has a crossorigin attribute.

https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/crossorigin

Request is to be able to support:

Image(src = url, crossorigin=true

cf last comment in https://github.com/bubkoo/html-to-image/issues/301

reubenfirmin commented 9 months ago

Nvm. setAttribute does the job!