From cf135586159dac6228b4cfb12cd6fb98270d89ed Mon Sep 17 00:00:00 2001 From: Marcos Lilljedahl Date: Wed, 25 Apr 2018 13:23:48 -0300 Subject: [PATCH] Add PWK --- handlers/bootstrap.go | 1 + 1 file changed, 1 insertion(+) diff --git a/handlers/bootstrap.go b/handlers/bootstrap.go index 55a9d10..1464ecb 100644 --- a/handlers/bootstrap.go +++ b/handlers/bootstrap.go @@ -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 }