From 34c274ea8d06d5a7b506fd505f79ed2d9bed1359 Mon Sep 17 00:00:00 2001 From: Johann Schopplich Date: Sun, 11 Feb 2024 21:41:00 +0100 Subject: [PATCH] feat: always allow options preflight response --- src/extensions/api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extensions/api.php b/src/extensions/api.php index 0f074d6..05dda79 100644 --- a/src/extensions/api.php +++ b/src/extensions/api.php @@ -11,12 +11,12 @@ return [ /** - * Allow preflight requests, mainly for `fetch` + * Allow preflight requests, mainly for `fetch` requests */ [ 'pattern' => '(:all)', 'method' => 'OPTIONS', - 'auth' => $auth, + 'auth' => false, 'action' => fn () => Api::createPreflightResponse() ],