mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 23:57:23 +00:00
Allow CORS *
This commit is contained in:
parent
85d20cd61b
commit
cbf162ca64
1 changed files with 2 additions and 0 deletions
|
|
@ -80,6 +80,8 @@ func NewJsonRpcServer(pipe *xeth.JSXEth, port int) (*JsonRpcServer, error) {
|
|||
|
||||
func apiHandler(xeth *EthereumApi) http.Handler {
|
||||
fn := func(w http.ResponseWriter, req *http.Request) {
|
||||
w.Header().Set("Access-Control-Allow-Origin", "*")
|
||||
|
||||
jsonlogger.Debugln("Handling request")
|
||||
|
||||
reqParsed, reqerr := JSON.ParseRequestBody(req)
|
||||
|
|
|
|||
Loading…
Reference in a new issue