A decentralized music tracking and discovery platform built on AT Protocol 🎵 rocksky.app
spotify atproto lastfm musicbrainz scrobbling listenbrainz
98
fork

Configure Feed

Select the types of activity you want to include in your feed.

Log unauthorized access attempts

Include the Authorization header in a logger.warn when admin auth
fails to assist debugging and trace unauthorized requests.
Log unauthorized access attempts

+2 -1
+2 -1
tap/src/main.ts
··· 75 75 try { 76 76 assureAdminAuth(ADMIN_PASSWORD, req.headers.get("authorization")!); 77 77 } catch { 78 + logger.warn`Unauthorized access attempt ${req.headers.get("authorization")}`; 78 79 return new Response(null, { status: 401 }); 79 80 } 80 81 const evt = parseTapEvent(req.body); ··· 120 121 } 121 122 } 122 123 123 - return new Response(""); 124 + return new Response(null, { status: 200 }); 124 125 } 125 126 126 127 if (req.headers.get("upgrade") != "websocket") {