From cce705c4f7889606c395ee7b62ef5fff8a31e916 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Thu, 12 Sep 2024 19:33:14 -0400 Subject: [PATCH] for now, cors supports all --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index c8708d5..bc3e532 100644 --- a/app.js +++ b/app.js @@ -41,7 +41,7 @@ const limiter = rateLimit({ max: 100 }) -app.use(express.json(), cookieParser(), morgan('dev'), mongoSanitize(), helmet(), xss(), limiter, hpp(), cors(corsOptions)) +app.use(express.json(), cookieParser(), morgan('dev'), mongoSanitize(), helmet(), xss(), limiter, hpp(), cors()) app.use('/api/admin/games', adminGames) app.use('/api/games', games)