File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
java/com/pj/keycloak/security
webapp/spring-data-ui/src/app/interceptors Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ protected void configure(HttpSecurity http) throws Exception
55
55
super .configure (http );
56
56
57
57
http .authorizeRequests ()
58
- .antMatchers ("/api/**" )
59
- .hasAnyAuthority ( Roles . ROLE_ADMIN )
58
+ // .antMatchers("/api/**").hasAnyAuthority(Roles.ROLE_ADMIN )
59
+ .antMatchers ( "/api/**" ). permitAll ( )
60
60
.anyRequest ()
61
61
.permitAll ();
62
62
Original file line number Diff line number Diff line change @@ -16,8 +16,7 @@ export class TokenInterceptor implements HttpInterceptor
16
16
const token = this . tokenExtractor . getToken ( ) as string ;
17
17
request = request . clone ( {
18
18
setHeaders : {
19
- "Authorization" : "Bearer " + authToken ,
20
- "X-XSRF-TOKEN" : token
19
+ "Authorization" : "Bearer " + authToken
21
20
}
22
21
} ) ;
23
22
return next . handle ( request ) ;
You can’t perform that action at this time.
0 commit comments