We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c30d71d commit e66ed55Copy full SHA for e66ed55
handlers/bootstrap.go
@@ -56,7 +56,7 @@ func Register(extend HandlerExtender) {
56
r := mux.NewRouter()
57
corsRouter := mux.NewRouter()
58
59
- 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"}))
60
61
// Specific routes
62
r.HandleFunc("/ping", Ping).Methods("GET")
0 commit comments