From f44b6476a703e3596d7d7694a48de794c358ac48 Mon Sep 17 00:00:00 2001 From: Amos Ng Date: Fri, 12 Mar 2021 00:00:57 +0800 Subject: [PATCH] Fixed Access-Control-Expose-Headers typo --- CHANGELOG.md | 1 + src/main/kotlin/mdnet/server/ImageHandler.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c7e17d..68f4783 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Removed ### Fixed +- [2021-03-11] Fixed Access-Control-Expose-Headers typo [@lflare]. ### Security diff --git a/src/main/kotlin/mdnet/server/ImageHandler.kt b/src/main/kotlin/mdnet/server/ImageHandler.kt index 208e60c..f8267df 100644 --- a/src/main/kotlin/mdnet/server/ImageHandler.kt +++ b/src/main/kotlin/mdnet/server/ImageHandler.kt @@ -182,7 +182,7 @@ class ImageServer( { request: Request -> val response = next(request) response.header("access-control-allow-origin", "https://mangadex.org") - .header("access-control-allow-headers", "*") + .header("access-control-expose-headers", "*") .header("access-control-allow-methods", "GET") .header("timing-allow-origin", "https://mangadex.org") }