mirror of
https://gitlab.com/mangadex-pub/mangadex_at_home.git
synced 2024-01-19 02:48:37 +00:00
Add Access-Control-Allow-Origin
This commit is contained in:
parent
286f2b3bbc
commit
3c7f796c9e
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue