fix: change url in JavaScript for JWT endpoint
The JavaScript pointed to the context root /WebWolf/ which is no longer in use.
This commit is contained in:
parent
075b1ab30a
commit
693771220c
@ -48,14 +48,15 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
|
|||||||
protected void configure(HttpSecurity http) throws Exception {
|
protected void configure(HttpSecurity http) throws Exception {
|
||||||
ExpressionUrlAuthorizationConfigurer<HttpSecurity>.ExpressionInterceptUrlRegistry security =
|
ExpressionUrlAuthorizationConfigurer<HttpSecurity>.ExpressionInterceptUrlRegistry security =
|
||||||
http.authorizeRequests()
|
http.authorizeRequests()
|
||||||
.antMatchers("/css/**", "/images/**", "/js/**", "/fonts/**", "/webjars/**", "/home")
|
.antMatchers(HttpMethod.POST, "/fileupload")
|
||||||
.permitAll()
|
|
||||||
.antMatchers(HttpMethod.GET, "/mail/**", "/requests/**")
|
|
||||||
.authenticated()
|
.authenticated()
|
||||||
.antMatchers("/files")
|
.antMatchers(HttpMethod.GET, "/files", "/mail", "/requests")
|
||||||
.authenticated()
|
.authenticated()
|
||||||
|
.and()
|
||||||
|
.authorizeRequests()
|
||||||
.anyRequest()
|
.anyRequest()
|
||||||
.permitAll();
|
.permitAll();
|
||||||
|
|
||||||
security.and().csrf().disable().formLogin().loginPage("/login").failureUrl("/login?error=true");
|
security.and().csrf().disable().formLogin().loginPage("/login").failureUrl("/login?error=true");
|
||||||
security.and().formLogin().loginPage("/login").defaultSuccessUrl("/home", true).permitAll();
|
security.and().formLogin().loginPage("/login").defaultSuccessUrl("/home", true).permitAll();
|
||||||
security.and().logout().permitAll();
|
security.and().logout().permitAll();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user