From d3ae86b18d67848b9bc237e21ff5da7df6f2d695 Mon Sep 17 00:00:00 2001 From: Raymond Yang Date: Tue, 27 Jun 2023 15:56:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3CORS=E4=B8=8D=E5=85=81?= =?UTF-8?q?=E8=A8=B1delete?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/com/ray650128/pcredive/plugins/HTTP.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/ray650128/pcredive/plugins/HTTP.kt b/src/main/kotlin/com/ray650128/pcredive/plugins/HTTP.kt index 1df3ea2..2442116 100644 --- a/src/main/kotlin/com/ray650128/pcredive/plugins/HTTP.kt +++ b/src/main/kotlin/com/ray650128/pcredive/plugins/HTTP.kt @@ -9,7 +9,7 @@ fun Application.configureHTTP() { allowMethod(HttpMethod.Options) allowMethod(HttpMethod.Get) allowMethod(HttpMethod.Put) - //allowMethod(HttpMethod.Delete) + allowMethod(HttpMethod.Delete) allowMethod(HttpMethod.Post) allowHeader(HttpHeaders.AccessControlAllowOrigin) allowHeader(HttpHeaders.Accept)