Skip to content

Commit 19e1231

Browse files
committed
Add origins for localhost and staging
1 parent c766c73 commit 19e1231

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ func startDaemon() {
256256
socketHandler := wsHandler().ServeHTTP
257257

258258
r.Use(cors.Middleware(cors.Config{
259-
Origins: "https://create.arduino.cc, http://create.arduino.cc, https://create-dev.arduino.cc, http://create-dev.arduino.cc, http://webide.arduino.cc:8080",
259+
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",
260260
Methods: "GET, PUT, POST, DELETE",
261261
RequestHeaders: "Origin, Authorization, Content-Type",
262262
ExposedHeaders: "",

0 commit comments

Comments
 (0)