From e66ed55a9be38cb7128a679b71ba1bda42b49346 Mon Sep 17 00:00:00 2001 From: Marcos Lilljedahl Date: Tue, 23 Jan 2018 11:51:57 -0300 Subject: [PATCH] Add trainngs and pwm origin headers --- handlers/bootstrap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/bootstrap.go b/handlers/bootstrap.go index 7acdf47..642b9f8 100644 --- a/handlers/bootstrap.go +++ b/handlers/bootstrap.go @@ -56,7 +56,7 @@ func Register(extend HandlerExtender) { r := mux.NewRouter() corsRouter := mux.NewRouter() - corsHandler := gh.CORS(gh.AllowCredentials(), gh.AllowedHeaders([]string{"x-requested-with", "content-type"}), gh.AllowedMethods([]string{"GET", "POST", "HEAD", "DELETE"}), gh.AllowedOrigins([]string{"*"})) + corsHandler := gh.CORS(gh.AllowCredentials(), gh.AllowedHeaders([]string{"x-requested-with", "content-type"}), gh.AllowedMethods([]string{"GET", "POST", "HEAD", "DELETE"}), gh.AllowedOrigins([]string{"http://training.play-with-docker.com", "http://play-with-moby.com"})) // Specific routes r.HandleFunc("/ping", Ping).Methods("GET")