|
@@ -17,20 +17,4 @@ public class Application {
|
|
|
public static void main(String[] args) throws Exception {
|
|
|
SpringApplication.run(Application.class, args);
|
|
|
}
|
|
|
-
|
|
|
- @Bean
|
|
|
- public WebMvcConfigurer corsConfigurer() {
|
|
|
- return new WebMvcConfigurerAdapter() {
|
|
|
- public void addCorsMappings(CorsRegistry registry) {
|
|
|
- registry.addMapping("/**");
|
|
|
-
|
|
|
-// registry.addMapping("/**")
|
|
|
-// .allowedOrigins("*")
|
|
|
-// .allowedMethods("GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS", "TRACE")
|
|
|
-// .allowedHeaders("*")
|
|
|
-// .exposedHeaders("access_token", "credentials", "refresh_token")
|
|
|
-// .allowCredentials(true).maxAge(3600);
|
|
|
- }
|
|
|
- };
|
|
|
- }
|
|
|
}
|