Home > Back-end >  How to make a page display different content in vanilla JS?
How to make a page display different content in vanilla JS?

Time:11-29

I am trying to make an app compiling some of my projects, but it requires a sign-in. However, people can just go to the HTML page with the projects, and I would like to stop this. How do I make sure people cannot access my page without logging in? My code is at this link: https://replit.com/@RAYScript/CodeDay2022

CodePudding user response:

You should make a script on server side to manage routes on client side, you can use PHP or Node.js(Base on JavaScript) and start to learn about server.

  • Related