Fix CORS for delete request
This commit is contained in:
1 parent
977d59b60b
commit
e8d342a729
1 file changed
+1
@@ -359,6 +359,7 @@ fun Application.module(env: Env = PROD) {
|
||||
install(CORS) {
|
||||
method(HttpMethod.Options)
|
||||
method(HttpMethod.Put)
|
||||
method(HttpMethod.Delete)
|
||||
header(HttpHeaders.Authorization)
|
||||
anyHost()
|
||||
// host("localhost:4200", schemes = listOf("http", "https"))
|
||||
|
||||
Reference in new issue
Block a user