Skip to content

Commit

Permalink
🚑 fix : 쿠키 samesite 옵션 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
chaeunho1227 committed May 27, 2024
1 parent 71029e6 commit 4909db4
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 @@ -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, 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':
Expand Down

0 comments on commit 4909db4

Please sign in to comment.