class MallWebSecurityConfigurerAdapter {
    @Bean
    public SecurityFilterChain filterChain(HttpSecurity http) throws Exception{<FILL_FUNCTION_BODY>}

}

        // We don't need CSRF for token based authentication
        return http.csrf().disable().cors()
                .and().sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS)
                .and().authorizeRequests().requestMatchers(CorsUtils::isPreFlightRequest).permitAll()
                .and()
                .authorizeRequests().requestMatchers(
                        "/**").permitAll().and().build();
    
<no_super_class>