Zory 1 tuần trước cách đây
mục cha
commit
2f0a99f47d
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      config/plugin/linfly/annotation/route.php

+ 5 - 0
config/plugin/linfly/annotation/route.php

@@ -11,6 +11,11 @@ declare (strict_types=1);
 namespace LinFly\Annotation\Handle;
 
 use LinFly\Annotation\Bootstrap\AnnotationBootstrap;
+use Webman\Route;
+// 匹配所有options路由
+Route::options('[{path:.+}]', function (){
+    return response('',204);
+});
 
 if (!AnnotationBootstrap::isIgnoreProcess()) {
     RouteAnnotationHandle::createRoute();