Hello, in the frontend I am using ethers and metamask/detect-provider to interact with a solidity smart contract. But I have an error that I can't solve (with web3 I don't have an error, but I prefer to use ethers and metamask/detect-provider because I have the possibility to catch the errors returned by the requires of the smart contract). thanks for your help

The error is:

Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'wasm-unsafe-eval' 'inline-speculation-rules'". Either the 'unsafe-inline' keyword, a hash ('sha256-6Cc0YkTDV4XO4yjFXL4UpU9+v3gSeO6Sg/EPF/6bUBw='), or a nonce ('nonce-...') is required to enable inline execution.

Jun 15, 2023, 4:45 AM

© 2024 Draquery.com All rights reserved.