You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vaseala
changed the title
how to set crossorigin to avatar component's image node?
how to set crossorigin to avatar component's image dom node?
Oct 29, 2022
This function solves the problem (这个功能解决的问题)
to use
SharedArrayBuffer
, I have to set the server header:Cross-Origin-Opener-Policy: same-origin
.(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer)
If the
n-avatar
component's image is not the same site with current href, it can not show normal.(Maybe other components had the same problem.)If I can add a
crossorigin="anonymous"
attribute to the<img />
, It can show normal.Expected API (期望的 API)
Then the
crossorigin="anonymous"
can pass to the<img />
node in theavatar
component.The text was updated successfully, but these errors were encountered: