From 29c24d6970b5355def2f85a00c1242f3c25bd524 Mon Sep 17 00:00:00 2001 From: Alex Guo Date: Tue, 8 Jun 2021 17:17:00 -0500 Subject: [PATCH 1/2] Need to add "X-App-Client-Signature" to the allowed CORS header list --- code/go/0chain.net/blobber/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/code/go/0chain.net/blobber/main.go b/code/go/0chain.net/blobber/main.go index c3a6163f2..c9936f28b 100644 --- a/code/go/0chain.net/blobber/main.go +++ b/code/go/0chain.net/blobber/main.go @@ -334,6 +334,7 @@ func main() { headersOk := handlers.AllowedHeaders([]string{ "X-Requested-With", "X-App-Client-ID", "X-App-Client-Key", "Content-Type", + "X-App-Client-Signature" }) // Allow anybody to access API. From 78503840715d9acd645067407b8ff8b844b7fc56 Mon Sep 17 00:00:00 2001 From: Alex Guo Date: Tue, 8 Jun 2021 18:08:47 -0500 Subject: [PATCH 2/2] fix lint by adding comma at end of field --- code/go/0chain.net/blobber/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/go/0chain.net/blobber/main.go b/code/go/0chain.net/blobber/main.go index c9936f28b..d01de9268 100644 --- a/code/go/0chain.net/blobber/main.go +++ b/code/go/0chain.net/blobber/main.go @@ -334,7 +334,7 @@ func main() { headersOk := handlers.AllowedHeaders([]string{ "X-Requested-With", "X-App-Client-ID", "X-App-Client-Key", "Content-Type", - "X-App-Client-Signature" + "X-App-Client-Signature", }) // Allow anybody to access API.