Skip to content

Commit d29895b

Browse files
remove support for sending authorization with cookies
1 parent 0763b58 commit d29895b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

robosats/middleware.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,6 @@ def __call__(self, request):
123123
).replace("Private ", "")
124124
nostr_pubkey = request.META.get("NOSTR_PUBKEY", "").replace("Nostr ", "")
125125

126-
# Some legacy (pre-federation) clients will still send keys as cookies
127-
if public_key == "" or encrypted_private_key == "":
128-
public_key = request.COOKIES.get("public_key")
129-
encrypted_private_key = request.COOKIES.get("encrypted_private_key", "")
130-
131126
if not public_key or not encrypted_private_key or not nostr_pubkey:
132127
return JsonResponse(
133128
{

0 commit comments

Comments
 (0)