server: remove cors config fron JSON-RPC (#465)

This commit is contained in:
Federico Kunze Küllmer
2021-08-20 10:58:03 +00:00
committed by GitHub
parent 6f145da328
commit 9ea2ce4b8f
6 changed files with 30 additions and 28 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ func StartJSONRPC(ctx *server.Context, clientCtx client.Context, tmRPCAddr strin
r.HandleFunc("/", rpcServer.ServeHTTP).Methods("POST")
handlerWithCors := cors.Default()
if config.JSONRPC.EnableUnsafeCORS {
if config.API.EnableUnsafeCORS {
handlerWithCors = cors.AllowAll()
}