Skip to content

Commit e53934c

Browse files
committed
Merge pull request #4 from arduino/origin
Add origins for localhost and staging
2 parents c766c73 + 19e1231 commit e53934c

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)