Bläddra i källkod

Allow CORS requests, closes #19

Jake 10 år sedan
förälder
incheckning
c2108ff442
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      routes/avatars.js

+ 2 - 1
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);
   }