Skip to content

Commit

Permalink
for problem searching
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy0006 committed Mar 30, 2024
1 parent 84f0fcc commit f2c4acf
Showing 1 changed file with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,22 @@ public CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();
configuration.setAllowCredentials(true);
configuration.setAllowedOrigins(Arrays.asList(
"https://alpha.poolc.org", "http://localhost:3000",
"https://server.poolc.kr", "http://server.poolc.kr",
"http://poolc.kr","https://poolc.kr",
"https://poolc.org", "http://poolc.org",
"chrome-extension://doeamknhlolnflkmhbhkagganhjjbefe",
"*"
// "https://alpha.poolc.org", "http://localhost:3000",
// "https://server.poolc.kr", "http://server.poolc.kr",
// "http://poolc.kr","https://poolc.kr",
// "https://poolc.org", "http://poolc.org",
// "chrome-extension://doeamknhlolnflkmhbhkagganhjjbefe",
CorsConfiguration.ALL
));
configuration.setAllowedHeaders(Arrays.asList(
// "Authorization", "Cache-Control",
// "Content-Type", "Accept", "Content-Length", "Accept-Encoding", "X-Requested-With"
"*"
CorsConfiguration.ALL
));
configuration.setAllowedMethods(Arrays.asList(
// "GET", "POST", "PUT", "DELETE", "OPTIONS", "HEAD"
CorsConfiguration.ALL
));
configuration.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "DELETE", "OPTIONS", "HEAD"));
configuration.setMaxAge(3600L);

UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
Expand Down

0 comments on commit f2c4acf

Please sign in to comment.