diff --git a/app/src/main/kotlin/com/wbrawner/twigs/server/Application.kt b/app/src/main/kotlin/com/wbrawner/twigs/server/Application.kt index ec8012f..758b4f4 100644 --- a/app/src/main/kotlin/com/wbrawner/twigs/server/Application.kt +++ b/app/src/main/kotlin/com/wbrawner/twigs/server/Application.kt @@ -125,6 +125,7 @@ fun Application.moduleWithDependencies( } install(CORS) { allowHost("twigs.wbrawner.com", listOf("http", "https")) // TODO: Make configurable + allowHost("localhost:4200", listOf("http", "https")) // TODO: Make configurable allowMethod(HttpMethod.Options) allowMethod(HttpMethod.Put) allowMethod(HttpMethod.Delete) @@ -184,4 +185,4 @@ fun Application.moduleWithDependencies( interface Job { suspend fun run() -} \ No newline at end of file +}