Articles
Latest
More
Newsletter Sponsorship Discord About
Sign up for our Newsletter
The video for this lesson is currently being updated, please read the transcript instead.
Enterprise Vue > Lesson 40

Securing requests and responses

Looking at the response we get from our POST /users endpoint, you might notice something disturbing.

We actually get the password, in plain text, in the response! That's obviously not very secure so in this video, we're going to fix that.

toJSON

We when use Express to load a Mongoose object and send it in a response, Mongoose will automatically transform the document to JSON using a method called toJSON.


Back to course page

Click to load comments...

Articles
  • Latest
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

Vue.js Developers © 2021. View our privacy policy .

  • RSS
  • |
  • Atom