Sfoglia il codice sorgente

Attempt to set Origin header

Jake 10 anni fa
parent
commit
d3b8dde3c8
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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',
           'Cache-Control': 'max-age=' + config.browser_cache_time + ', public',
           'Response-Time': new Date() - start,
           'Response-Time': new Date() - start,
           'X-Storage-Type': human_status[status],
           'X-Storage-Type': human_status[status],
-          'Access-Control-Allow-Origin': "*"
+          'Access-Control-Allow-Origin': "*",
+          'Origin': 'https://crafatar.com'
         });
         });
         res.end();
         res.end();
       } else if (!err) {
       } else if (!err) {