Skip to content

Image JS Cross-Origin #20

Description

@ReDrUm

Recently changes to ImageLoader added a crossOrigin property to generated ImageElements in JS target HTML (e.g. when used by mui.display.Image).

It's currently on by default and you're able to opt out by adding a compilation flag to your project:

-D default_cross_origin

Many third party image hosts/services don't yet support this and you're forced to add the flag to your project otherwise loading their images are blocked. Additionally if your app is loading images off multiple third party servers it's possible that some may need the crossOrigin property set while others won't.

I propose we change it to be opt-in instead of opt-out, and also set it at the class level instead of globally.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions