Manager: CORS origins should be without trailing slash

This commit is contained in:
Sybren A. Stüvel 2022-04-11 17:11:09 +02:00
parent 48417f7f14
commit c0b2c6c234

@ -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{