Return 404 for undefined .well-known (#3404)
This commit is contained in:
		
							parent
							
								
									857940f402
								
							
						
					
					
						commit
						06124dbbd5
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -59,6 +59,11 @@ const router = new Router();
 | 
			
		|||
router.use(activityPub.routes());
 | 
			
		||||
router.use(webFinger.routes());
 | 
			
		||||
 | 
			
		||||
// Return 404 for other .well-known
 | 
			
		||||
router.all('/.well-known/*', async ctx => {
 | 
			
		||||
	ctx.status = 404;
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
// Register router
 | 
			
		||||
app.use(router.routes());
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue