mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-22 07:51:17 +01:00
Allow CORS requests, closes #19
This commit is contained in:
parent
ebd8e18b29
commit
c2108ff442
@ -65,7 +65,8 @@ router.get('/:uuid.:ext?', function(req, res) {
|
|||||||
'Content-Type': 'image/png',
|
'Content-Type': 'image/png',
|
||||||
'Cache-Control': 'max-age=' + config.browser_cache_time + ', public',
|
'Cache-Control': 'max-age=' + config.browser_cache_time + ', public',
|
||||||
'Response-Time': new Date() - start,
|
'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);
|
res.end(image);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user