From cc7b41efe2e0651c8e1efbefa590b04a6a5bd8e6 Mon Sep 17 00:00:00 2001 From: Asara Date: Sat, 5 Oct 2019 22:57:54 -0400 Subject: [PATCH] Fix origins --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 8af50a6..089c70d 100644 --- a/main.go +++ b/main.go @@ -55,7 +55,7 @@ func Routes() *chi.Mux { // enable cors testing // LOCK THIS DOWN FOR PRODUCTION cors := cors.New(cors.Options{ - AllowedOrigins: []string{"*"}, + 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,