expressjs

CORS in expressjs

What is CORS? * 한마디로 Ajax를 사용할때 JSONP [http://en.wikipedia.org/wiki/JSONP]를 사용하지 않고 CrossDomain 통신을 할 수 있게 하는 것이다. * http://en.wikipedia.org/wiki/Cross-origin_resource_sharing * https://developer.

expressjs - error handling 전략

토이 프로젝트야 에러 처리가 미숙해도 상관 없지만 운영하는 서비스가 에러 처리가 미숙하면 사용자 경험에 좋지 않다. nodejs 로 에러 처리를 정리한 사항을 공유한다. 1. 케이스마다 대응하기 function someAction(req, res){ // some error occur