From d0ccd3d9d9025674e11c43b6c47bd68a32beef34 Mon Sep 17 00:00:00 2001 From: Tom Kruijsen Date: Fri, 5 Apr 2013 16:12:52 +0200 Subject: [PATCH] Add CORS header. --- web.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web.coffee b/web.coffee index 95dc6a4..82ceeba 100644 --- a/web.coffee +++ b/web.coffee @@ -14,7 +14,7 @@ Location.connect(app.config.get('MONGOHQ_URL')) read = -> Location.toJson (error, json) => - @res.writeHead(200, {'Content-Type': 'application/json'}) + @res.writeHead(200, {'Content-Type': 'application/json', 'Access-Control-Allow-Origin': '*'}) @res.write JSON.stringify(json) @res.end()