Add docker.com CORS support
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user