feat: allow cross-origin API requests for the web client
The Kotlin/Wasm client can be hosted separately from the API. Bearer auth does not use cookies, so a permissive CORS policy is safe and keeps the static bundle deployable anywhere.
This commit is contained in:
1 parent
b33eb076c1
commit
54cf807a9b
2 files changed
+19
No files matched your search
@@ -35,6 +35,7 @@ dependencies {
|
||||
implementation("io.ktor:ktor-server-status-pages-jvm:3.1.2")
|
||||
implementation("io.ktor:ktor-server-call-logging-jvm:3.1.2")
|
||||
implementation("io.ktor:ktor-server-auto-head-response-jvm:3.1.2")
|
||||
implementation("io.ktor:ktor-server-cors-jvm:3.1.2")
|
||||
|
||||
// Database
|
||||
implementation("org.jetbrains.exposed:exposed-core:0.60.0")
|
||||
|
||||
Reference in new issue
Block a user