fix: update CORS options for better compatibility

All wildcard paths now need a name.
This commit is contained in:
2025-04-03 16:21:46 +02:00
parent b0c639b509
commit a9fe91bd84
+1 -1
View File
@@ -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 }))