/*
package com.nantian.cloud.jljc.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class SecurityConfig implements WebMvcConfigurer {
    @Override
    public void addCorsMappings(CorsRegistry corsRegistry){
        */
/**
         * 所有请求都允许跨域，使用这种配置就不需要
         * 在interceptor中配置header了
         *//*

        corsRegistry.addMapping("/**")
                .allowCredentials(true)
                .allowedOrigins("*")
                .allowedMethods("POST", "GET", "PUT", "OPTIONS", "DELETE")
                .allowedHeaders("*")
                .maxAge(3600);
    }
    */
/*@Override
    public void configure(HttpSecurity httpSecurity) throws Exception {
        httpSecurity.cors().and().csrf().disable().authorizeRequests()
                .requestMatchers(CorsUtils::isPreFlightRequest).permitAll()
                .antMatchers(outPath()).permitAll()
                .anyRequest().authenticated();
    }*//*

    private String[] outPath(){
        return new String[]{
                "/ttraining/pageInfoOut",
                "/ttrainingperson/saveOut"
        };
    }
}
*/
