浏览代码

Attempt to set Origin header

Jake 10 年之前
父节点
当前提交
d3b8dde3c8
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      routes/avatars.js

+ 2 - 1
routes/avatars.js

@@ -31,7 +31,8 @@ router.get('/skins/:uuid.:ext?', function(req, res) {
           'Cache-Control': 'max-age=' + config.browser_cache_time + ', public',
           'Response-Time': new Date() - start,
           'X-Storage-Type': human_status[status],
-          'Access-Control-Allow-Origin': "*"
+          'Access-Control-Allow-Origin': "*",
+          'Origin': 'https://crafatar.com'
         });
         res.end();
       } else if (!err) {