From a9fe91bd848d4b45a0ca834defb6ed6282e598f9 Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Thu, 3 Apr 2025 16:21:46 +0200 Subject: [PATCH] fix: update CORS options for better compatibility All wildcard paths now need a name. --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index ba2984d..623d514 100644 --- a/app.js +++ b/app.js @@ -54,7 +54,7 @@ const signToken = async (token) => { // Configure our small auth0-mock-server app - .options('*', cors(corsOpts)) + .options('*all', cors(corsOpts)) .use(cors()) .use(bodyParser.json({ strict: false })) .use(bodyParser.urlencoded({ extended: true }))