Commit 31a12580 authored by Jie Yuan's avatar Jie Yuan
Browse files

allow /api/serviceComponent/jsonreport without authorization

parent dbae72ad
......@@ -68,7 +68,7 @@ public class OAuth2SecurityConfig extends WebSecurityConfigurerAdapter {
.authorizeRequests()
.antMatchers( "/login**","/api/auth/**","/","/api/serviceComponent/pakiti/report","/api/sites/existence/**")
.antMatchers( "/login**","/api/auth/**","/","/api/serviceComponent/pakiti/report","/api/serviceComponent/jsonreport","/api/sites/existence/**")
.permitAll()
......
......@@ -138,7 +138,7 @@ public class SpringSecurityConfiguration_Database extends WebSecurityConfigurerA
.sessionCreationPolicy(SessionCreationPolicy.STATELESS)
.and()
.authorizeRequests()
.antMatchers("/api/auth/**","/login**","/","/api/serviceComponent/pakiti/report","/api/sites/existence/**")
.antMatchers("/api/auth/**","/login**","/","/api/serviceComponent/pakiti/report","/api/serviceComponent/jsonreport","/api/sites/existence/**")
.permitAll()
//.antMatchers("/api/user/checkUsernameAvailability", "/api/user/checkEmailAvailability")
// .permitAll()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment