mirror of
https://github.com/typicode/json-server.git
synced 2025-07-29 21:23:41 +08:00
Support credentials true #15
This commit is contained in:
@ -23,7 +23,7 @@ if (fs.existsSync(process.cwd() + '/public')) {
|
||||
server.use(express.static(path.join(__dirname, './public')));
|
||||
}
|
||||
|
||||
server.use(cors())
|
||||
server.use(cors({ origin: true, credentials: true }))
|
||||
server.use(server.router)
|
||||
|
||||
if ('development' == server.get('env')) {
|
||||
|
Reference in New Issue
Block a user