diff --git a/handlers/bootstrap.go b/handlers/bootstrap.go index 4df2b48..55a9d10 100644 --- a/handlers/bootstrap.go +++ b/handlers/bootstrap.go @@ -58,7 +58,7 @@ func Register(extend HandlerExtender) { corsRouter := mux.NewRouter() corsHandler := gh.CORS(gh.AllowCredentials(), gh.AllowedHeaders([]string{"x-requested-with", "content-type"}), gh.AllowedMethods([]string{"GET", "POST", "HEAD", "DELETE"}), gh.AllowedOriginValidator(func(origin string) bool { - if strings.HasSuffix(origin, "localhost") || + if strings.Contains(origin, "localhost") || strings.HasSuffix(origin, "play-with-docker.com") || strings.HasSuffix(origin, "play-with-moby.com") { return true