mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	feat: allow trust proxy (#4396)
This commit is contained in:
		
							parent
							
								
									a09c6dcaea
								
							
						
					
					
						commit
						f140b0253d
					
				| @ -289,6 +289,7 @@ export default class UserAdminController extends Controller { | |||||||
|                 rateLimit({ |                 rateLimit({ | ||||||
|                     windowMs: minutesToMilliseconds(1), |                     windowMs: minutesToMilliseconds(1), | ||||||
|                     max: 20, |                     max: 20, | ||||||
|  |                     validate: false, | ||||||
|                     standardHeaders: true, |                     standardHeaders: true, | ||||||
|                     legacyHeaders: false, |                     legacyHeaders: false, | ||||||
|                 }), |                 }), | ||||||
|  | |||||||
| @ -32,6 +32,7 @@ class IndexRouter extends Controller { | |||||||
|             rateLimit({ |             rateLimit({ | ||||||
|                 windowMs: minutesToMilliseconds(1), |                 windowMs: minutesToMilliseconds(1), | ||||||
|                 max: 10, |                 max: 10, | ||||||
|  |                 validate: false, | ||||||
|                 standardHeaders: true, |                 standardHeaders: true, | ||||||
|                 legacyHeaders: false, |                 legacyHeaders: false, | ||||||
|             }), |             }), | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user