1
0
mirror of https://gitlab.com/mangadex-pub/mangadex_at_home.git synced 2024-11-16 16:12:32 +01:00

Fixed Access-Control-Expose-Headers typo

This commit is contained in:
Amos Ng 2021-03-12 00:00:57 +08:00
parent 1be9ee8506
commit f44b6476a7
No known key found for this signature in database
GPG Key ID: CF425D82FC4037D2
2 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Removed ### Removed
### Fixed ### Fixed
- [2021-03-11] Fixed Access-Control-Expose-Headers typo [@lflare].
### Security ### Security

View File

@ -182,7 +182,7 @@ class ImageServer(
{ request: Request -> { request: Request ->
val response = next(request) val response = next(request)
response.header("access-control-allow-origin", "https://mangadex.org") 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("access-control-allow-methods", "GET")
.header("timing-allow-origin", "https://mangadex.org") .header("timing-allow-origin", "https://mangadex.org")
} }