Unitech/pm2 — pull request #245 by zuk (2014-01-06 18:52:32+00:00)
Title: HttpInterface now sends CORS headers to allow browsers to fetch data dir...

Currently it's not possible for a web browser to directly fetch data from pm2's http interface (for example, using an AJAX request). This is because of cross origin resource sharing security restrictions built in to most browser. This patch adds CORS headers to all pm2 http interface responses, so that browser can query pm2 directly.

Additionally, a request to an invalid path now correctly returns a 404 response.