for now, cors supports all

This commit is contained in:
John O'Keefe 2024-09-12 19:33:14 -04:00
parent ed889d95e6
commit cce705c4f7

2
app.js
View File

@ -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)