-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Dev 환경 쿠키 이슈 해결 및 관련 로직 개선 (#276)
* chore: 테스트 트리거 활성화 * fix: 개발환경에서는 쿠키의 secure 옵션 false이도록 수정 * refactor: 변수명 변경 * fix: CORS dev 설정 롤백 * refactor: enum을 대체하는 환경변수 상수 클래스 추가 * refactor: 운영환경 체크 유틸리티에서 새로운 상수 클래스를 사용하도록 개선 * refactor: 원시 boolean 사용하도록 변경 * refactor: 새로운 상수 클래스 사용하도록 개선 * refactor: 기존 상수 클래스 대체하도록 변경 * refactor: sameSite 상수 사용하도록 변경 * refactor: 쿠키 헤더 상수로 변경 * refactor: cors origin 로직에서 switch문 제거하도록 개선 * refactor: secure 정책 로직 개선 * chore: 테스트 트리거 비활성화 * fix: SameSite가 None일 때 작동할 수 있도록 secure을 항상 참으로 설정 * refactor: 롬복 기본 생성자를 사용하도록 변경
- Loading branch information
Showing
5 changed files
with
41 additions
and
54 deletions.
There are no files selected for viewing
19 changes: 9 additions & 10 deletions
19
src/main/java/com/depromeet/global/common/constants/EnvironmentConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
package com.depromeet.global.common.constants; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import java.util.List; | ||
import lombok.AccessLevel; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public enum EnvironmentConstants { | ||
PROD("prod"), | ||
DEV("dev"), | ||
LOCAL("local"), | ||
; | ||
@NoArgsConstructor(access = AccessLevel.PRIVATE) | ||
public class EnvironmentConstants { | ||
|
||
private String value; | ||
public static final String PROD = "prod"; | ||
public static final String DEV = "dev"; | ||
public static final String LOCAL = "local"; | ||
public static final List<String> PROD_AND_DEV = List.of(PROD, DEV); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters