0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-17 22:04:19 -05:00
logto/.changeset/soft-kings-grin.md
simeng-li d2468683c8
refactor(experience): remove the image CORS attributes (#6959)
* refactor(experience): remove the image CORS prop

remove the image tag CORS property, do not check the source CORS headers

* chore: add changeset

add changeset

* chore: fix typo

fix typo

* chore: update the changeset

update the changeset
2025-01-21 02:56:20 +00:00

591 B

@logto/experience
patch

remove the image element's cross-origin="anonymous" attribute.

Some public image resources may not have the proper cross-origin headers configured, those images may fail to load when the cross-origin="anonymous" attribute is present. Since those image elements are only used for display purposes, Logto does not need to access the image data, so the cross-origin="anonymous" attribute is not necessary. To make the image elements more compatible with public image resources, remove the cross-origin="anonymous" attribute from the image elements.