openvidu-server: proper CORS configuration

v2
pabloFuente 2025-11-03 13:14:11 +01:00
parent 67b6aa7158
commit 9a522af1bc
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ public class SecurityConfig {
* Configure CORS and CSRF settings. Can be overridden by subclasses.
*/
protected void configureHttpSecurity(HttpSecurity http) throws Exception {
http.cors(cors -> cors.disable())
http.cors(cors -> {}) // Uses below CorsFilter bean
.csrf(csrf -> csrf.disable());
}