Fix origins

This commit is contained in:
Amarpreet Minhas 2019-10-05 22:57:54 -04:00
parent 5a0875a0ca
commit cc7b41efe2

View file

@ -55,7 +55,7 @@ func Routes() *chi.Mux {
// enable cors testing // enable cors testing
// LOCK THIS DOWN FOR PRODUCTION // LOCK THIS DOWN FOR PRODUCTION
cors := cors.New(cors.Options{ cors := cors.New(cors.Options{
AllowedOrigins: []string{"*"}, AllowedOrigins: []string{"https//sudoscientist.com", "https://www.sudoscientist.com"},
AllowedMethods: []string{"GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"}, AllowedMethods: []string{"GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"},
AllowedHeaders: []string{"Accept", "Authorization", "Content-Type", "X-CSRF-Token"}, AllowedHeaders: []string{"Accept", "Authorization", "Content-Type", "X-CSRF-Token"},
AllowCredentials: true, AllowCredentials: true,