Allow CORS requests, closes #19

This commit is contained in:
Jake 2014-11-24 15:51:17 -06:00
parent ebd8e18b29
commit c2108ff442

View File

@ -65,7 +65,8 @@ router.get('/:uuid.:ext?', function(req, res) {
'Content-Type': 'image/png',
'Cache-Control': 'max-age=' + config.browser_cache_time + ', public',
'Response-Time': new Date() - start,
'X-Storage-Type': human_status[img_status]
'X-Storage-Type': human_status[img_status],
'Access-Control-Allow-Origin': "*"
});
res.end(image);
}