Skip to content

Commit

Permalink
feat: always allow options preflight response
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Feb 11, 2024
1 parent 125c9ff commit 34c274e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extensions/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
],

Expand Down

0 comments on commit 34c274e

Please sign in to comment.