Springdoc-openapi: Failed to load remote configuration

Created on 31 Dec 2019  路  4Comments  路  Source: springdoc/springdoc-openapi

After updating from 1.2.18 to the latest version I noticed swagger-ui isn't working anymore. When I bring it up I just get a message about "Failed to load remote configuration." I'm using a pretty vanilla configuration. Is there a migration step that isn't documented?

Most helpful comment

If you are using spring-security you have to include the config path in your sercurity configuration.
What I did in my security config was to exclude those paths from websecurity.

@Configuration
public class WebSecurityConfiguration extends WebSecurityConfigurerAdapter {
    @Override
    public void configure(WebSecurity web) throws Exception {
        web.ignoring().antMatchers("/swagger-ui/**", "/v3/api-docs/**");
    }
}

All 4 comments

The following is what I see. I'm still trying to track down what changed.

image

If you are using spring-security you have to include the config path in your sercurity configuration.
What I did in my security config was to exclude those paths from websecurity.

@Configuration
public class WebSecurityConfiguration extends WebSecurityConfigurerAdapter {
    @Override
    public void configure(WebSecurity web) throws Exception {
        web.ignoring().antMatchers("/swagger-ui/**", "/v3/api-docs/**");
    }
}

I had that before but I didn't have the wild card on the end as it wasn't needed. Thanks for the tip!

It worked for me, Thank you

Was this page helpful?
0 / 5 - 0 ratings