Skip to content

Commit

Permalink
chore(cd): cd 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobhboy committed Apr 18, 2024
1 parent ffb2561 commit a4c1087
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: ci

on:
pull_request:
push:
branches: [ "master" ]

permissions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@ public class CorsConfig implements WebMvcConfigurer {
private static final String ALLOWED_METHODS = "*";
private static final String MAIN_SERVER_DOMAIN = "https://sickgyun.com";
private static final String FRONTEND_LOCALHOST = "http://localhost:3000";
private static final String HTTPS_FRONTEND_LOCALHOST = "https://localhost:3000";

@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping(ALLOW_ALL_PATH)
.allowedMethods(ALLOWED_METHODS)
.allowedOrigins(
MAIN_SERVER_DOMAIN,
FRONTEND_LOCALHOST
FRONTEND_LOCALHOST,
HTTPS_FRONTEND_LOCALHOST
)
.allowCredentials(true)
.exposedHeaders(LOCATION, SET_COOKIE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class InterceptorConfig implements WebMvcConfigurer {
private static final String ALLOWED_METHODS = "*";
private static final String MAIN_SERVER_DOMAIN = "https://sickgyun.com";
private static final String FRONTEND_LOCALHOST = "http://localhost:3000";
private static final String HTTPS_FRONTEND_LOCALHOST = "https://localhost:3000";

private final JwtParser jwtParser;
private final AuthUpdater authUpdater;
Expand All @@ -35,7 +36,8 @@ public void addCorsMappings(CorsRegistry registry) {
.allowedMethods(ALLOWED_METHODS)
.allowedOrigins(
MAIN_SERVER_DOMAIN,
FRONTEND_LOCALHOST
FRONTEND_LOCALHOST,
HTTPS_FRONTEND_LOCALHOST
)
.allowCredentials(true)
.exposedHeaders(LOCATION, SET_COOKIE);
Expand Down

0 comments on commit a4c1087

Please sign in to comment.