Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry){
registry.addMapping("/**")
.allowedOrigins("http://localhost:5173", "https://z-igma.netlify.app")
.allowedOrigins("http://localhost:5173", "https://z-igma.netlify.app","https://z-igma.vercel.app")
.allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS")
.allowedHeaders("Authorization", "Content-Type")
.allowCredentials(true);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jwt.access.expiration = ${JWT_ACCESS_EXPIRATION}
jwt.refresh.expiration = ${JWT_REFRESH_EXPIRATION}

# Frontend
app.oauth2.front-redirect-uri=https://z-igma.netlify.app/oauth/callback
app.oauth2.front-redirect-uri=https://z-igma.vercel.app//oauth/callback

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

리다이렉트 URI 경로에 중복된 슬래시(//)가 포함되어 있습니다. OAuth2 인증 과정에서 리다이렉트 URI는 등록된 값과 정확히 일치해야 하므로, 불필요한 슬래시를 제거하여 https://z-igma.vercel.app/oauth/callback으로 수정이 필요합니다.

app.oauth2.front-redirect-uri=https://z-igma.vercel.app/oauth/callback


# Web Push
web-push.vapid-public-key=${WEB_PUSH_VAPID_PUBLIC_KEY:}
Expand Down
Loading