@@ -39,19 +39,22 @@ public CorsConfigurationSource corsConfigurationSource() {
39
39
CorsConfiguration configuration = new CorsConfiguration ();
40
40
configuration .setAllowCredentials (true );
41
41
configuration .setAllowedOrigins (Arrays .asList (
42
- "https://alpha.poolc.org" , "http://localhost:3000" ,
43
- "https://server.poolc.kr" , "http://server.poolc.kr" ,
44
- "http://poolc.kr" ,"https://poolc.kr" ,
45
- "https://poolc.org" , "http://poolc.org" ,
46
- "chrome-extension://doeamknhlolnflkmhbhkagganhjjbefe" ,
47
- "*"
42
+ // "https://alpha.poolc.org", "http://localhost:3000",
43
+ // "https://server.poolc.kr", "http://server.poolc.kr",
44
+ // "http://poolc.kr","https://poolc.kr",
45
+ // "https://poolc.org", "http://poolc.org",
46
+ // "chrome-extension://doeamknhlolnflkmhbhkagganhjjbefe",
47
+ CorsConfiguration . ALL
48
48
));
49
49
configuration .setAllowedHeaders (Arrays .asList (
50
50
// "Authorization", "Cache-Control",
51
51
// "Content-Type", "Accept", "Content-Length", "Accept-Encoding", "X-Requested-With"
52
- "*"
52
+ CorsConfiguration .ALL
53
+ ));
54
+ configuration .setAllowedMethods (Arrays .asList (
55
+ // "GET", "POST", "PUT", "DELETE", "OPTIONS", "HEAD"
56
+ CorsConfiguration .ALL
53
57
));
54
- configuration .setAllowedMethods (Arrays .asList ("GET" , "POST" , "PUT" , "DELETE" , "OPTIONS" , "HEAD" ));
55
58
configuration .setMaxAge (3600L );
56
59
57
60
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource ();
0 commit comments