News for hackers. Stuff that matters.
Re:PouchDB, the In-Browser Database That Replicates by marcus_holmes on Friday October 25, 2013 @08:36PM (#6615667)
I was immediately struck by the scary thing of putting the password in the URL:

    remote = 'https://USERNAME:[email protected]/DATABASE'
I know HTTPS URLs are encrypted, but it still strikes me as unsafe. What does HN think?
Re:PouchDB, the In-Browser Database That Replicates by fiatjaf on Friday October 25, 2013 @08:41PM (#6615683)
This is demo code. See this comment: https://news.ycombinator.com/item?id=6612482

But it can work with cookie authentication with just a little more lines of code.