mbrevda / react-image

React.js <img> tag rendering with multiple fallback & loader support
MIT License
1.2k stars 88 forks source link

crossorigin not being passed to native image element #970

Open codebycarlos opened 2 years ago

codebycarlos commented 2 years ago

Similar to #967, although this affects the crossorigin prop rather than crossOrigin. I've created a sandbox to showcase the problem by comparing behaviour to a native image element.

When setting an image's crossorigin attribute via the crossorigin prop..

<Img crossorigin="anonymous" />

It doesn't actually end up set in the actual DOM element:

image

image