package com.sldlt.config;

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;
import org.springframework.security.web.header.writers.ReferrerPolicyHeaderWriter.ReferrerPolicy;

@EnableWebSecurity
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {

    @Override
    protected void configure(HttpSecurity http) throws Exception {
        http
            .csrf()
                .disable()
            .headers()
                .referrerPolicy(ReferrerPolicy.SAME_ORIGIN)
                    .and()
                .and()
            .authorizeRequests()
                .antMatchers("/api").permitAll()
                .antMatchers("/**").permitAll();
    }

}

@@ -93,32 +93,112 @@
 s.HttpSecurity;%0A
+import org.springframework.security.config.annotation.web.builders.WebSecurity;%0A
 import org.sprin
@@ -563,16 +563,215 @@
 pter %7B%0A%0A
+    @Override%0A    public void configure(WebSecurity web) throws Exception %7B%0A        web%0A            .ignoring()%0A                .antMatchers(%22/js/**%22)%0A                .antMatchers(%22/css/**%22);%0A    %7D%0A%0A
     @Ove

exclude static resources from spring filter