简体   繁体   中英

How can I enable CORS for a quorum node from the geth console?

I have a remote quorum node that I am trying to connect my metamask wallet to but it needs to have CORS enabled but I created my network with quorum-wizard and I can only connect to a node using attach.sh that was generated when I created it. When I run./attach.sh 1 to connect to node 1 it connects but when I run

 --rpccorsdomain "*" 

from the geth console I get

(anonymous): Line 1:17 Unexpected string

Try using a localhost address:

--rpccorsdomain "http://localhost:8080"

Or without the backticks:

--rpccorsdomain=*

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM