package com.mpalourdio.html5.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.builders.WebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.web.csrf.CookieCsrfTokenRepository;

@Configuration
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {

    @Override
    public void configure(WebSecurity web) throws Exception {
        super.configure(web);
    }

    @Override
    protected void configure(HttpSecurity http) throws Exception {
        http.csrf()
                .csrfTokenRepository(CookieCsrfTokenRepository.withHttpOnlyFalse())
                .and()
                .authorizeRequests()
                .antMatchers("/**")
                .permitAll();
    }
}


@@ -727,33 +727,16 @@
 p.csrf()
-%0A                
 .csrfTok
@@ -798,133 +798,8 @@
 e())
-%0A                .and()%0A                .authorizeRequests()%0A                .antMatchers(%22/**%22)%0A                .permitAll()
 ;%0A  

Simplify http security