Explorar o código

Attempt to set Origin header

Jake %!s(int64=10) %!d(string=hai) anos
pai
achega
d3b8dde3c8
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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) {