LionC / express-basic-auth

Plug & play basic auth middleware for express
325 stars 57 forks source link

Blank page in safari when pw contains ! #46

Closed sandersdevelopments closed 9 months ago

sandersdevelopments commented 2 years ago

Funny Story 🙂

app.use(basicAuth({ users: { 'admin': 'supersecret' } }))

When the supersecret contains an exclamation mark Safari shows a blank page 🙂 question marks for example work. The issue does not appear on any android Version but on every ios Version ^^ maybe the internal base64 is messed up by special special characters?

LionC commented 9 months ago

Can not reproduce with other clients, so this seems to be a safari issue. Please comment again if you have indication that this is actually a server side problem.