Skip to content

Commit

Permalink
Merge pull request #66 from chaeunho1227/ceh-HOTFIX
Browse files Browse the repository at this point in the history
πŸš‘ fix : delete cookie samesite λ³€κ²½
  • Loading branch information
chaeunho1227 authored May 27, 2024
2 parents 757c734 + ee2b7bf commit a93686a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion booth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
response.delete_cookie(booth_id, samesite='none')
return response
else:
return Response({'error': 'ν•΄λ‹Ή λΆ€μŠ€μ— λŒ€ν•œ μ’‹μ•„μš”λ₯Ό 찾을 수 μ—†μŠ΅λ‹ˆλ‹€.'}, status=status.HTTP_400_BAD_REQUEST)
Expand Down

0 comments on commit a93686a

Please sign in to comment.