mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-04 03:14:40 -05: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 ->
|
config.bundledPlugins.enableCors { cors ->
|
||||||
cors.addRule {
|
cors.addRule {
|
||||||
it.anyHost()
|
it.allowCredentials = true
|
||||||
|
it.reflectClientOrigin = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user