From fe521199f1f39b866d61f01417856d3c3cf3fd20 Mon Sep 17 00:00:00 2001 From: Ryota Egusa Date: Tue, 16 Apr 2019 16:35:24 +0900 Subject: [PATCH] Allow origin localohst --- app/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/run.go b/app/run.go index 16f225c8..1880a0b7 100644 --- a/app/run.go +++ b/app/run.go @@ -39,7 +39,7 @@ func Run() error { authorizator := interceptor.NewAuthorizator(store) c := cors.New(cors.Options{ - AllowedOrigins: []string{"https://*.prolab.club", "https://prolab.club", "http://localhost:8080"}, + AllowedOrigins: []string{"https://*.prolab.club", "https://prolab.club", "http://localhost:*"}, AllowedMethods: []string{"GET", "POST", "PUT", "DELETE", "PATCH"}, AllowedHeaders: []string{"Authorization", "Content-Type", "Accept"}, AllowCredentials: true,