Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 72358

Node.js - How to hide html pages?

$
0
0

I have html pages which shouldn’t be seen by the users who haven’t logged in. I used the command below and my html pages became public.

app.use(express.static('public'));

For example, I do not want users who are not logged in to see this page.

http://localhost:3000/admin.html

NOTE: what I'm talking about is not a cookie. When you enter the address of the html page in the toolbar, if it is not logged in, it should not be able to reach that page.


Viewing all articles
Browse latest Browse all 72358

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>