feat(routes): move the cors handler from /v2 to only where it's needed (#1457)

Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com>
This commit is contained in:
LaurentiuNiculae
2023-05-20 07:22:51 +03:00
committed by GitHub
parent 1b184ceef8
commit c0170b0811
7 changed files with 63 additions and 41 deletions
+1
View File
@@ -495,6 +495,7 @@ func TestAllowMethodsHeader(t *testing.T) {
conf := config.New()
conf.HTTP.Port = port
conf.Storage.RootDirectory = dir
conf.HTTP.AllowOrigin = "someOrigin"
simpleUser := "simpleUser"
simpleUserPassword := "simpleUserPass"