From c0b2c6c23438db7a534d28a1bd283839405a06c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 11 Apr 2022 17:11:09 +0200 Subject: [PATCH] Manager: CORS origins should be without trailing slash --- cmd/flamenco-manager/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/flamenco-manager/main.go b/cmd/flamenco-manager/main.go index 44efd686..1cb02098 100644 --- a/cmd/flamenco-manager/main.go +++ b/cmd/flamenco-manager/main.go @@ -176,7 +176,7 @@ func buildWebService( e.Use(middleware.CORSWithConfig(middleware.CORSConfig{ // Just some hard-coded URLs for now, just to get some tests going. - AllowOrigins: []string{"http://localhost:8080/", "http://localhost:8081/", "http://10.161.30.150:8081"}, + AllowOrigins: []string{"http://localhost:8080", "http://localhost:8081", "http://10.161.30.150:8081"}, // List taken from https://www.bacancytechnology.com/blog/real-time-chat-application-using-socketio-golang-vuejs/ AllowHeaders: []string{