[WASM] Use crossorigin="anonymous"
if web image fails to load
#10645
Labels
difficulty/starter 🚀
Categorizes an issue for which the difficulty level is reachable by newcomers
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
kind/bug
Something isn't working
platform/wasm 🌐
Categorizes an issue or PR as relevant to the WebAssembly platform
project/media 📺
Categorizes an issue or PR as relevant to media (MediaPlayer, WebView, PDF, Image, …)
Current behavior
Currently when
Image
source is a HTTPS URL, it will fail to load in casecrossorigin
attribute is not set toanonymous
due to Cross-Origin-Embedder-Policy header.Expected behavior
If the image fails to load due to CORS, we should retry with
crossorigin = anonymous
added. This is now needed since the Cross-Origin-Embedder-Policy header is used to enable threadingHow to reproduce it (as minimally and precisely as possible)
No response
Workaround
No response
Works on UWP/WinUI
Yes
Environment
No response
NuGet package version(s)
No response
Affected platforms
No response
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: