From 19e1231ac6fd4c803d7f2983cbe54ba9f6cbbcdd Mon Sep 17 00:00:00 2001 From: Matteo Suppo Date: Wed, 22 Jul 2015 08:55:26 +0200 Subject: [PATCH] Add origins for localhost and staging --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index aa92c1332..6b1019ee4 100755 --- a/main.go +++ b/main.go @@ -256,7 +256,7 @@ func startDaemon() { socketHandler := wsHandler().ServeHTTP r.Use(cors.Middleware(cors.Config{ - Origins: "https://create.arduino.cc, http://create.arduino.cc, https://create-dev.arduino.cc, http://create-dev.arduino.cc, http://webide.arduino.cc:8080", + Origins: "https://create.arduino.cc, http://create.arduino.cc, https://create-dev.arduino.cc, http://create-dev.arduino.cc, http://webide.arduino.cc:8080, http://create-staging.arduino.cc, https://create-staging.arduino.cc, http://localhost:8989, https://localhost:8990", Methods: "GET, PUT, POST, DELETE", RequestHeaders: "Origin, Authorization, Content-Type", ExposedHeaders: "",