2
0
Эх сурвалжийг харах

Allow CORS requests, closes #19

Jake 10 жил өмнө
parent
commit
c2108ff442
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  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);
   }