DevMountain / Siri

A mini-project to practice basic Node.JS fundamentals and server-side programming
3 stars 237 forks source link

better convention, add security #2

Closed coolaj86 closed 9 years ago

coolaj86 commented 9 years ago

use res.setHeader, not res.writeHead

Also, if they're going to use CORS, they really had better learn the minimal CSP header as well. It's dangerous not to.