fix: update CORS options for better compatibility
All wildcard paths now need a name.
This commit is contained in:
@@ -54,7 +54,7 @@ const signToken = async (token) => {
|
|||||||
|
|
||||||
// Configure our small auth0-mock-server
|
// Configure our small auth0-mock-server
|
||||||
app
|
app
|
||||||
.options('*', cors(corsOpts))
|
.options('*all', cors(corsOpts))
|
||||||
.use(cors())
|
.use(cors())
|
||||||
.use(bodyParser.json({ strict: false }))
|
.use(bodyParser.json({ strict: false }))
|
||||||
.use(bodyParser.urlencoded({ extended: true }))
|
.use(bodyParser.urlencoded({ extended: true }))
|
||||||
|
|||||||
Reference in New Issue
Block a user