From d27cd9194762ba088916b6b3229ba27dbdd3e086 Mon Sep 17 00:00:00 2001 From: Fugi Date: Mon, 15 Jun 2020 22:59:35 -0700 Subject: [PATCH] Also set Access-Control-Expose-Headers --- 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 c9ffb7c..42e8247 100644 --- a/src/main/kotlin/mdnet/base/server/ImageServer.kt +++ b/src/main/kotlin/mdnet/base/server/ImageServer.kt @@ -233,6 +233,7 @@ class ImageServer(private val cache: DiskLruCache, private val statistics: Atomi listOf("public", MaxAgeTtl(Constants.MAX_AGE_CACHE).toHeaderValue()).joinToString(", ") ) .header("Access-Control-Allow-Origin", "https://mangadex.org") + .header("Access-Control-Expose-Headers", "*") .header("Timing-Allow-Origin", "https://mangadex.org") .let { if (length != null) {