Skip to content

Commit

Permalink
Remove basic auth processing
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOrangePuff committed Jul 20, 2022
1 parent a7c5dc9 commit 5522624
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/prerender-fargate/lib/prerender/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ server.use({
let auth = req.headers['x-prerender-token'];
if (!auth) return res.send(401);

// malformed
let parts = auth.split(' ');
if ('basic' != parts[0].toLowerCase()) return res.send(401);
if (!parts[1]) return res.send(401);
auth = parts[1].toString();

// check credentials exist
if (!auth) return res.send(401);

Expand Down

0 comments on commit 5522624

Please sign in to comment.