Add docker.com CORS support

This commit is contained in:
Marcos Lilljedahl
2019-03-28 23:18:59 -03:00
parent f7350b02c3
commit 91912732aa

View File

@@ -61,6 +61,7 @@ func Register(extend HandlerExtender) {
if strings.Contains(origin, "localhost") ||
strings.HasSuffix(origin, "play-with-docker.com") ||
strings.HasSuffix(origin, "play-with-kubernetes.com") ||
strings.HasSuffix(origin, "docker.com") ||
strings.HasSuffix(origin, "play-with-moby.com") {
return true
}