From c26ded1b698c734fcd5acf1bbed950a745442211 Mon Sep 17 00:00:00 2001 From: Asara Date: Sat, 26 Oct 2019 12:22:14 -0400 Subject: [PATCH] Fix cors path, ship v1 --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index f51849c..50d071b 100644 --- a/main.go +++ b/main.go @@ -53,7 +53,7 @@ func main() { func Routes() *chi.Mux { router := chi.NewRouter() cors := cors.New(cors.Options{ - AllowedOrigins: []string{"https//sudoscientist.com", "https://www.sudoscientist.com"}, + AllowedOrigins: []string{"https://sudoscientist.com", "https://www.sudoscientist.com"}, AllowedMethods: []string{"GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"}, AllowedHeaders: []string{"Accept", "Authorization", "Content-Type", "X-CSRF-Token"}, AllowCredentials: true,