adamsaghy commented on code in PR #4825:
URL: https://github.com/apache/fineract/pull/4825#discussion_r2193433578


##########
fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/config/SecurityConfig.java:
##########
@@ -227,6 +230,10 @@ public TenantAwareBasicAuthenticationFilter 
tenantAwareBasicAuthenticationFilter
         return filter;
     }
 
+    public GeolocationHeaderFilter geolocationHeaderFilter() {
+        return new GeolocationHeaderFilter(fineractProperties);

Review Comment:
   Dont create it manually. Autowire this lazily instead!
   ```
   @Autowired(required = false)`
    private GeolocationHeaderFilter geolocationHeaderFilter;
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to