Ethereum 使用VS代码创建与智能合约交互的UI

Ethereum 使用VS代码创建与智能合约交互的UI,ethereum,Ethereum,我一直在关注这个教程。 testrpc正在运行,我不知道现在还能做什么。下面是错误 web3.min.js:1 Failed to load http://localhost:8545/: Response to preflight request doesn't pass access control check: The value of the 'Access-Control- Allow-Origin' header in the response must not be the w

我一直在关注这个教程。 testrpc正在运行,我不知道现在还能做什么。下面是错误

web3.min.js:1 Failed to load http://localhost:8545/: Response to preflight 
request doesn't pass access control check: The value of the 'Access-Control- 
Allow-Origin' header in the response must not be the wildcard '*' when the 
request's credentials mode is 'include'. Origin 'null' is therefore not 
allowed access. The credentials mode of requests initiated by the 
XMLHttpRequest is controlled by the withCredentials attribute.
t.send @ web3.min.js:1
web3.min.js:1 Uncaught Error: CONNECTION ERROR: Couldn't connect to node 
http://localhost:8545.
at Object.InvalidConnection (web3.min.js:1)
at t.send (web3.min.js:1)
at n.send (web3.min.js:1)
at l.accounts (web3.min.js:1)
at index.html:40

我能够通过将
web3
的版本降级到
0.20.6
而不是0.20.7来解决这个错误。其他人有此问题,请尝试此解决方案