Skip to content

Commit

Permalink
Hotfix/127 πŸ› [FIX] swagger cors μˆ˜μ • (#130)
Browse files Browse the repository at this point in the history
* πŸ› Fix : μžλ™λ‘œκ·ΈμΈ, λ‘œκ·Έμ•„μ›ƒ API 버그 μˆ˜μ •

redis μœ μ§€μ‹œκ°„κ³Ό 토큰 λ§Œλ£Œμ‹œκ°„ 맞좀, λ‘œκ·Έμ•„μ›ƒμ‹œ λͺ¨λ“  fcm 토큰 제거

* πŸ› Fix : web config μˆ˜μ •

swagger cors μˆ˜μ •

* πŸ› Fix : swagger cors μˆ˜μ •
  • Loading branch information
CYY1007 authored Sep 15, 2023
1 parent 4e87303 commit 40e268e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/zipdabang/server/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public UrlBasedCorsConfigurationSource corsConfigurationSource() {

CorsConfiguration configuration = new CorsConfiguration();
// λͺ¨λ“  좜처λ₯Ό ν—ˆμš©ν•©λ‹ˆλ‹€.
configuration.setAllowedOrigins(Arrays.asList("https://www.zipdabang.store"));
configuration.setAllowedOrigins(Arrays.asList("https://api.zipdabang.store"));
configuration.setAllowedOrigins(Arrays.asList("https://www.zipdabang.shop"));
configuration.setAllowedOrigins(Arrays.asList("https://api.zipdabang.shop"));
configuration.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"));
configuration.setAllowedHeaders(Arrays.asList("*"));
configuration.setAllowCredentials(true);
Expand Down

0 comments on commit 40e268e

Please sign in to comment.