FINERACT-2326: Add configuration options for CORS handling
This commit is contained in:
+13
@@ -519,6 +519,7 @@ public class FineractProperties {
|
||||
private FineractSecurityTwoFactorAuth twoFactor;
|
||||
private FineractSecurityHsts hsts;
|
||||
private FineractSecurityOAuth2Properties oauth2;
|
||||
private CorsProperties cors;
|
||||
|
||||
public void set2fa(FineractSecurityTwoFactorAuth twoFactor) {
|
||||
this.twoFactor = twoFactor;
|
||||
@@ -688,4 +689,16 @@ public class FineractProperties {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
public static class CorsProperties {
|
||||
|
||||
private boolean enabled;
|
||||
private List<String> allowedOrigins;
|
||||
private List<String> allowedMethods;
|
||||
private List<String> allowedHeaders;
|
||||
private List<String> exposedHeaders;
|
||||
private boolean allowCredentials;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user