for now, cors supports all
This commit is contained in:
		
							
								
								
									
										2
									
								
								app.js
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								app.js
									
									
									
									
									
								
							@@ -41,7 +41,7 @@ const limiter = rateLimit({
 | 
				
			|||||||
  max: 100
 | 
					  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/admin/games', adminGames)
 | 
				
			||||||
app.use('/api/games', games)
 | 
					app.use('/api/games', games)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user