Skip to content

Commit

Permalink
fix swagger icon bug
Browse files Browse the repository at this point in the history
  • Loading branch information
macrozheng committed Aug 18, 2019
1 parent c8317cb commit c42d57c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ protected void configure(HttpSecurity httpSecurity) throws Exception {
"/**/*.css",
"/**/*.js",
"/swagger-resources/**",
"/v2/api-docs/**"
"/v2/api-docs/**",
"/webjars/springfox-swagger-ui/**"
)
.permitAll()
.antMatchers("/admin/login", "/admin/register")// 对登录注册要允许匿名访问
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ protected void configure(HttpSecurity http) throws Exception {
"/**/*.css",
"/**/*.js",
"/swagger-resources/**",
"/v2/api-docs/**"
"/v2/api-docs/**",
"/webjars/springfox-swagger-ui/**"
)
.permitAll()
.antMatchers(HttpMethod.OPTIONS)//跨域请求会先进行一次options请求
Expand Down

0 comments on commit c42d57c

Please sign in to comment.