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,