mirror of
				https://github.com/zitadel/zitadel.git
				synced 2025-11-04 06:14:14 +00:00 
			
		
		
		
	logging middleware
This commit is contained in:
		@@ -370,7 +370,10 @@ func startAPIs(
 | 
			
		||||
	}
 | 
			
		||||
	oidcPrefixes := []string{"/.well-known/openid-configuration", "/oidc/v1", "/oauth/v2"}
 | 
			
		||||
	// always set the origin in the context if available in the http headers, no matter for what protocol
 | 
			
		||||
	router.Use(middleware.WithOrigin(config.ExternalSecure, config.HTTP1HostHeader, config.HTTP2HostHeader, config.InstanceHostHeaders, config.PublicHostHeaders))
 | 
			
		||||
	router.Use(
 | 
			
		||||
		logging.Middleware(),
 | 
			
		||||
		middleware.WithOrigin(config.ExternalSecure, config.HTTP1HostHeader, config.HTTP2HostHeader, config.InstanceHostHeaders, config.PublicHostHeaders),
 | 
			
		||||
	)
 | 
			
		||||
	systemTokenVerifier, err := internal_authz.StartSystemTokenVerifierFromConfig(http_util.BuildHTTP(config.ExternalDomain, config.ExternalPort, config.ExternalSecure), config.SystemAPIUsers)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user