mirror of
https://github.com/revanced/revanced-api.git
synced 2025-04-29 22:24:31 +02:00
fix: Allow more necessary HTTP methods for CORS
This commit is contained in:
parent
8ff1bbd41f
commit
080e2e582c
@ -14,6 +14,8 @@ fun Application.configureHTTP() {
|
|||||||
val configurationRepository = get<ConfigurationRepository>()
|
val configurationRepository = get<ConfigurationRepository>()
|
||||||
|
|
||||||
install(CORS) {
|
install(CORS) {
|
||||||
|
HttpMethod.DefaultMethods.minus(HttpMethod.Options).forEach(::allowMethod)
|
||||||
|
|
||||||
allowHeader(HttpHeaders.ContentType)
|
allowHeader(HttpHeaders.ContentType)
|
||||||
allowHeader(HttpHeaders.Authorization)
|
allowHeader(HttpHeaders.Authorization)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user