Update cors

This commit is contained in:
Amarpreet Minhas 2019-10-05 22:58:12 -04:00
parent cc7b41efe2
commit 9cc2c7c234

View file

@ -52,8 +52,6 @@ func main() {
func Routes() *chi.Mux {
router := chi.NewRouter()
// enable cors testing
// LOCK THIS DOWN FOR PRODUCTION
cors := cors.New(cors.Options{
AllowedOrigins: []string{"https//sudoscientist.com", "https://www.sudoscientist.com"},
AllowedMethods: []string{"GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"},