Skip to content

Commit f2c4acf

Browse files
committed
for problem searching
1 parent 84f0fcc commit f2c4acf

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/main/java/org/poolc/api/auth/configurations/WebSecurityConfig.java

+11-8
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,22 @@ public CorsConfigurationSource corsConfigurationSource() {
3939
CorsConfiguration configuration = new CorsConfiguration();
4040
configuration.setAllowCredentials(true);
4141
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
4848
));
4949
configuration.setAllowedHeaders(Arrays.asList(
5050
// "Authorization", "Cache-Control",
5151
// "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
5357
));
54-
configuration.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "DELETE", "OPTIONS", "HEAD"));
5558
configuration.setMaxAge(3600L);
5659

5760
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();

0 commit comments

Comments
 (0)