Skip to content

Commit

Permalink
Add PWK
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosnils committed Apr 25, 2018
1 parent 8353f5a commit cf13558
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions handlers/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func Register(extend HandlerExtender) {
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.Contains(origin, "localhost") ||
strings.HasSuffix(origin, "play-with-docker.com") ||
strings.HasSuffix(origin, "play-with-kuberentes.com") ||
strings.HasSuffix(origin, "play-with-moby.com") {
return true
}
Expand Down

0 comments on commit cf13558

Please sign in to comment.