-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Description:
SecurityConfig and UserController allow all origins:
CorsConfigurationusessetAllowedOriginPatterns(Arrays.asList("*"))withsetAllowCredentials(true). This combination is insecure and can lead to credential leakage.UserControllerhas@CrossOrigin(origins = "*"), which is redundant and overly permissive.
CORS should restrict origins to known frontends (e.g. from config/env).
Acceptance criteria:
- CORS allowed origins come from configuration (e.g.
CORS_ALLOWED_ORIGINSin env) and are not*when credentials are allowed - Remove
@CrossOrigin(origins = "*")from controllers; rely on global CORS config only
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request