mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: proper CORS configuration
parent
67b6aa7158
commit
9a522af1bc
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue