Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…onch into release
  • Loading branch information
HeoJiye committed Mar 11, 2024
2 parents 368d56e + 7ddc272 commit 69e00a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/blue-green-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Blue/Green CD for Backend

on:
push:
paths: ["backend/**"]
branches: ["release", "*hotfix*"]
#paths: ["backend/**"]
#branches: ["release", "*hotfix*"]

env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
Expand Down
4 changes: 1 addition & 3 deletions frontend/src/business/hooks/auth/useKakaoOAuthRedirect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ export function useKakaoOAuthRedirect() {
const navigate = useNavigate();
const code = new URLSearchParams(window.location.search).get('code');

const headerOptions = isProdctionMode() ? { SameSite: 'None', Secure: true } : {};

const login = async () => {
const res = await axios.get(KAKAO_LOGIN_URL, {
params: { code },
withCredentials: true,
headers: headerOptions,
headers: isProdctionMode() ? { SameSite: 'None' } : {},
});

if (!res || res.status !== 200) {
Expand Down

0 comments on commit 69e00a2

Please sign in to comment.