Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

183
Views
Local storage of Web BrowserAPI not working

I have used local storage to store user's password in my webpage for authentication. However, on hosting the website, the local storage has stopped working at all. How can I fix this?

localStorage.setItem('password', {{userInput }})
about 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Some browsers block localStorage for Non-HTTPS sites. Check your browser's console for problem/warnings like: "localStorage blocked - not secure context".

And i thinkk there is a bug in your code. Try this:

localStorage.setItem('password', document.GetElementByID('password-input').value;)
about 4 years ago · Santiago Trujillo Report

0

 localStorage.setItem('password', JSON.stringify(userInput))
about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!