Open all swagger-requested endpoints
[portal/ric-dashboard.git] / webapp-backend / src / test / java / org / oransc / ric / portal / dashboard / config / WebSecurityMockConfiguration.java
index c17baef..cc9a308 100644 (file)
@@ -104,6 +104,7 @@ public class WebSecurityMockConfiguration extends WebSecurityConfigurerAdapter {
        public void configure(WebSecurity web) throws Exception {
                // This disables Spring security, but not the app's filter.
                web.ignoring().antMatchers(WebSecurityConfiguration.OPEN_PATHS);
+               web.ignoring().antMatchers("/", "/csrf"); // allow swagger-ui to load
        }
 
        @Bean