From a75dab492ce74759f32065533df63c45b1d7fd4e Mon Sep 17 00:00:00 2001 From: Hleb Albau Date: Sat, 15 Dec 2018 23:32:35 +0300 Subject: [PATCH] #2980 fix cors doc (#3013) --- docs/tendermint-core/configuration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tendermint-core/configuration.md b/docs/tendermint-core/configuration.md index b61ebe73e..e66dcf511 100644 --- a/docs/tendermint-core/configuration.md +++ b/docs/tendermint-core/configuration.md @@ -81,10 +81,10 @@ laddr = "tcp://0.0.0.0:26657" cors_allowed_origins = [] # A list of methods the client is allowed to use with cross-domain requests -cors_allowed_methods = [HEAD GET POST] +cors_allowed_methods = ["HEAD", "GET", "POST"] # A list of non simple headers the client is allowed to use with cross-domain requests -cors_allowed_headers = [Origin Accept Content-Type X-Requested-With X-Server-Time] +cors_allowed_headers = ["Origin", "Accept", "Content-Type", "X-Requested-With", "X-Server-Time"] # TCP or UNIX socket address for the gRPC server to listen on # NOTE: This server only supports /broadcast_tx_commit