Skip to content

Commit e66ed55

Browse files
committed
Add trainngs and pwm origin headers
1 parent c30d71d commit e66ed55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

handlers/bootstrap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func Register(extend HandlerExtender) {
5656
r := mux.NewRouter()
5757
corsRouter := mux.NewRouter()
5858

59-
corsHandler := gh.CORS(gh.AllowCredentials(), gh.AllowedHeaders([]string{"x-requested-with", "content-type"}), gh.AllowedMethods([]string{"GET", "POST", "HEAD", "DELETE"}), gh.AllowedOrigins([]string{"*"}))
59+
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"}))
6060

6161
// Specific routes
6262
r.HandleFunc("/ping", Ping).Methods("GET")

0 commit comments

Comments
 (0)