mirror of
https://github.com/Suwayomi/Tachidesk.git
synced 2025-12-10 06:42:07 +01:00
Allow cors with credentials (#1163)
"anyHost" is not allowed in combination with "Access-Control-Allow-Credentials" (https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#sect2). At least the default webUI always includes credentials which causes a cors policy violation
This commit is contained in:
@@ -91,7 +91,8 @@ object JavalinSetup {
|
||||
|
||||
config.bundledPlugins.enableCors { cors ->
|
||||
cors.addRule {
|
||||
it.anyHost()
|
||||
it.allowCredentials = true
|
||||
it.reflectClientOrigin = true
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user