Compare commits

..

2 commits

Author SHA1 Message Date
9cc2c7c234 Update cors 2019-10-05 22:58:12 -04:00
cc7b41efe2 Fix origins 2019-10-05 22:57:54 -04:00

View file

@ -52,10 +52,8 @@ func main() {
func Routes() *chi.Mux {
router := chi.NewRouter()
// 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,