mirror of
https://gitlab.com/mangadex-pub/mangadex_at_home.git
synced 2024-01-19 02:48:37 +00:00
Rollback stuff
This commit is contained in:
parent
9c81c415cd
commit
36ca9347f8
|
@ -55,8 +55,6 @@ import mdnet.cache.CachingInputStream
|
|||
import mdnet.cache.DiskLruCache
|
||||
import org.http4k.core.*
|
||||
import org.http4k.filter.CachingFilters
|
||||
import org.http4k.filter.CorsPolicy
|
||||
import org.http4k.filter.ServerFilters
|
||||
import org.http4k.lens.Path
|
||||
import org.jetbrains.exposed.sql.Database
|
||||
import org.jetbrains.exposed.sql.SchemaUtils
|
||||
|
@ -279,17 +277,12 @@ class ImageServer(
|
|||
|
||||
private fun baseHandler(): Filter =
|
||||
CachingFilters.Response.MaxAge(Clock.systemUTC(), Constants.MAX_AGE_CACHE)
|
||||
.then(ServerFilters.Cors(
|
||||
CorsPolicy(
|
||||
origins = listOf("https://mangadex.org"),
|
||||
headers = listOf("*"),
|
||||
methods = Method.values().toList()
|
||||
)
|
||||
)
|
||||
)
|
||||
.then(Filter { next: HttpHandler ->
|
||||
{ request: Request ->
|
||||
val response = next(request)
|
||||
response.header("access-control-allow-origin", "https://mangadex.org")
|
||||
response.header("access-control-allow-headers", "*")
|
||||
response.header("access-control-allow-headers", "GET")
|
||||
response.header("timing-allow-origin", "https://mangadex.org")
|
||||
}
|
||||
})
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
<configuration>
|
||||
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<immediateFlush>false</immediateFlush>
|
||||
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>${file-level:-TRACE}</level>
|
||||
</filter>
|
||||
|
|
Loading…
Reference in a new issue