Skip to content

Commit

Permalink
πŸš‘ fix : delete cookie samesite λ³€κ²½
Browse files Browse the repository at this point in the history
  • Loading branch information
chaeunho1227 committed May 27, 2024
1 parent 4909db4 commit ee2b7bf
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 ee2b7bf

Please sign in to comment.