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
After resolving a timeout error by adding a useEffect call and making minor adjustments, I'm encountering an issue with the script.integrity attribute.
According to the official documentation, the recommended value for this attribute is sha256-cuUqfbhmgeDDfwx+QGh6ncdr9kAxv8M+MLftyZ+lj9k=, but setting it this way throws an error:
When I try leaving script.integrity blank as a workaround, a different error appears:
After resolving a timeout error by adding a useEffect call and making minor adjustments, I'm encountering an issue with the script.integrity attribute.
According to the official documentation, the recommended value for this attribute is sha256-cuUqfbhmgeDDfwx+QGh6ncdr9kAxv8M+MLftyZ+lj9k=, but setting it this way throws an error:

When I try leaving script.integrity blank as a workaround, a different error appears:

This is the discussed code snippet:
const script = document.createElement('script');
script.src = "https://cdn.mayan.finance/mayan_widget_v_1_2_3.js";
script.integrity = "sha256-cuUqfbhmgeDDfwx+QGh6ncdr9kAxv8M+MLftyZ+lj9k=";
script.crossOrigin = "anonymous";
The text was updated successfully, but these errors were encountered: