From 19ccc86645ee9bf043739bab2cdccb8888099e07 Mon Sep 17 00:00:00 2001 From: chaeunho <97829504+chaeunho1227@users.noreply.github.com> Date: Mon, 27 May 2024 22:27:06 +0900 Subject: [PATCH] =?UTF-8?q?Revert=20"=F0=9F=9A=91=20fix=20:=20cookie=20set?= =?UTF-8?q?tings..."?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- booth/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/booth/views.py b/booth/views.py index 6d84722..402000a 100644 --- a/booth/views.py +++ b/booth/views.py @@ -118,7 +118,7 @@ def likes(self, request, pk=None): booth_like = BoothLike.objects.create(booth=booth, key=key, fingerprint=fingerprint) serializer = LikeSerializer(booth_like) response = Response(serializer.data) - response.set_cookie(booth_id, key, max_age=5*24*60*60, domain='.dgu-mua.site', httponly=True, secure=True, samesite='none') + response.set_cookie(booth_id, key, max_age=5*24*60*60, httponly=True, secure=True, samesite='none') return response elif request.method == 'DELETE': @@ -131,7 +131,7 @@ def likes(self, request, pk=None): if booth_like.exists(): booth_like.delete() response = Response({'message': '좋아요가 취소되었습니다.'}) - response.delete_cookie(booth_id, domain='.dgu-mua.site', samesite='none') + response.delete_cookie(booth_id, samesite='none') return response else: return Response({'error': '해당 부스에 대한 좋아요를 찾을 수 없습니다.'}, status=status.HTTP_400_BAD_REQUEST)