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 7c075b9 commit 571d4d5
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,21 @@ 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",
CorsConfiguration.ALL
"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
"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
"GET", "POST", "PUT", "DELETE", "OPTIONS", "HEAD"
// CorsConfiguration.ALL
));
configuration.setMaxAge(3600L);

Expand All @@ -65,7 +65,7 @@ public CorsConfigurationSource corsConfigurationSource() {
@Override
protected void configure(HttpSecurity http) throws Exception {
http
.cors().disable()
.cors().and()
.httpBasic().disable()
.csrf().disable()
.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS)
Expand Down

0 comments on commit 571d4d5

Please sign in to comment.