I am creating a HTTP Server in node js, and I want to add a password to a page that only I will use. The Basic authentication scheme requires username and password (In the browser popup). Having a username is useless for me and I want to know if its even possible to just show a password dialog.
The current code is this, sending a Status Code 401 and the WWW-Authenticate header.
response.statusCode = 401;
response.setHeader('WWW-Authenticate', 'Basic realm="Requires Password"');
response.end();
Which creates this window in Firefox
So what do I need to change in the response headers to only have a password field?