mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: recordings path endpoint security fix
parent
91c06a0b7b
commit
c242bea08a
|
@ -63,9 +63,9 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
|||
|
||||
// Security for recorded videos
|
||||
if (openviduConf.getOpenViduRecordingPublicAccess()) {
|
||||
conf = conf.antMatchers("/recordings/*").permitAll();
|
||||
conf = conf.antMatchers("/recordings/**").permitAll();
|
||||
} else {
|
||||
conf = conf.antMatchers("/recordings/*").authenticated();
|
||||
conf = conf.antMatchers("/recordings/**").authenticated();
|
||||
}
|
||||
|
||||
conf.and().httpBasic();
|
||||
|
|
Loading…
Reference in New Issue