package info.rolandkrueger.userservice;

import info.rolandkrueger.userservice.application.DevelopmentProfileConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.PropertySource;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

@SpringBootApplication
@EnableWebSecurity
@PropertySource("userservice.properties")
public class UserMicroserviceApplication extends WebSecurityConfigurerAdapter {

    public static void main(String[] args) {
        SpringApplication.run(
                new Object[] {
                        UserMicroserviceApplication.class,
                        DevelopmentProfileConfiguration.class }
                , args);
    }

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

@@ -1197,16 +1197,48 @@
 itAll();
+%0A%0A        http.csrf().disable();
 %0A    %7D%0A%7D

Disable CSRF