From 3c7f796c9e86d91d68b6d5336c138386b2f06bfb Mon Sep 17 00:00:00 2001 From: Fugi Date: Mon, 15 Jun 2020 22:10:36 -0700 Subject: [PATCH] Add Access-Control-Allow-Origin --- src/main/kotlin/mdnet/base/server/ImageServer.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/kotlin/mdnet/base/server/ImageServer.kt b/src/main/kotlin/mdnet/base/server/ImageServer.kt index 628a254..c9ffb7c 100644 --- a/src/main/kotlin/mdnet/base/server/ImageServer.kt +++ b/src/main/kotlin/mdnet/base/server/ImageServer.kt @@ -232,6 +232,7 @@ class ImageServer(private val cache: DiskLruCache, private val statistics: Atomi "Cache-Control", listOf("public", MaxAgeTtl(Constants.MAX_AGE_CACHE).toHeaderValue()).joinToString(", ") ) + .header("Access-Control-Allow-Origin", "https://mangadex.org") .header("Timing-Allow-Origin", "https://mangadex.org") .let { if (length != null) {