for now, cors supports all
This commit is contained in:
parent
ed889d95e6
commit
cce705c4f7
2
app.js
2
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)
|
||||
|
Loading…
Reference in New Issue
Block a user