We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dda65c1 commit 3cb75e3Copy full SHA for 3cb75e3
src/middlewares/base-handler.js
@@ -58,6 +58,11 @@ export function createBaseHandler() {
58
59
// Add session to request
60
baseHandler.use(async (req, res, next) => {
61
+ if (req.method === 'OPTIONS') {
62
+ res.status(200).end()
63
+ return
64
+ }
65
+
66
/** Handle authorization using either Bearer token auth or
67
* using the next-auth session
68
*/
0 commit comments