-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
configurationconfigurationconfigurationcorscorscorssecuritysecuritysecuritywebsocketwebsocketwebsocket
Description
- Description: CORS origins differ in multiple places and WS allows
*. Centralize and restrict via properties. - Current state:
CorsConfigallowshttp://localhost:5173;SecurityConfigCORS also5173;application*.propertieshasspring.websocket.allowed-origins=http://localhost:3000;WebSocketConfiguses*. - Tasks:
- Introduce properties:
app.cors.allowed-origins,app.ws.allowed-originsfor all profiles. - Wire
CorsConfigurationSourceandWebSocketConfigto read properties. - In prod, restrict to explicit origins; in dev, allow localhost ports as needed.
- Introduce properties:
- Acceptance criteria:
- Single source of truth for allowed origins; WS and HTTP use the same set.
- No wildcard origins in prod.
- References:
CorsConfig.java,SecurityConfig.java,WebSocketConfig.java,application*.properties.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
configurationconfigurationconfigurationcorscorscorssecuritysecuritysecuritywebsocketwebsocketwebsocket