Skip to content

Commit

Permalink
Add CORS header.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Kruijsen committed Apr 5, 2013
1 parent 05d072a commit d0ccd3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit d0ccd3d

Please sign in to comment.