mirror of
				https://github.com/KevinMidboe/planetposen-backend.git
				synced 2025-10-29 16:30:13 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			230 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			230 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import type { Request, Response, NextFunction } from "express";
 | |
| 
 | |
| const openCORS = (req: Request, res: Response, next: NextFunction) => {
 | |
|   res.set("Access-Control-Allow-Origin", "*");
 | |
|   return next();
 | |
| };
 | |
| 
 | |
| export default openCORS;
 |