Skip to content

Commit

Permalink
Added Access-Control-Allow-Origin header in response
Browse files Browse the repository at this point in the history
  • Loading branch information
agolybev committed Sep 4, 2015
1 parent 1eaac4f commit fc2a47f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ module.exports = function (rootDirectory, logger, indexDocument, errorDocument,
};

var buildResponse = function (req, res, status, object, data) {
res.header('Access-Control-Allow-Origin', '*');
res.header('Etag', object.md5);
res.header('Last-Modified', new Date(object.modifiedDate).toUTCString());
res.header('Content-Type', object.contentType);
Expand Down

0 comments on commit fc2a47f

Please sign in to comment.