这个问题貌似和你一样解决跨域就好了:https://stackoverflow.com/questions/69830817/ethers-provider-cors-error-with-jsonrpcprovider-inside-of-react-applicationHeader set Access-Control-Allow-Origin "*" Header set Access-Control-Allow-Methods "DELETE, POST, GET, OPTIONS" Header set Access-Control-Allow-Headers "Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With"2.Ethers Provider CORS 错误与 JsonRPCProvider 在 react 应用程序内部:https://ethereum.stackexchange.com/questions/112828/ethers-pr...
这个问题貌似和你一样解决跨域就好了:https://stackoverflow.com/questions/69830817/ethers-provider-cors-error-with-jsonrpcprovider-inside-of-react-application
2.Ethers Provider CORS 错误与 JsonRPCProvider 在 react 应用程序内部:https://ethereum.stackexchange.com/questions/112828/ethers-pr...