From c2108ff4425aa58c34f7a30fa238b05c8179cf80 Mon Sep 17 00:00:00 2001 From: Jake Date: Mon, 24 Nov 2014 15:51:17 -0600 Subject: [PATCH] Allow CORS requests, closes #19 --- routes/avatars.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes/avatars.js b/routes/avatars.js index 24d0bc3..9ea50a0 100644 --- a/routes/avatars.js +++ b/routes/avatars.js @@ -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); }