已在生产环境中用nodejs-express制作的Rest API仅接受可选请求

该API正在使用axios从React应用中使用

可选请求仅在我实际使用POST请求时才出现

App.js

const express = require('express');
const cors = require('cors');
const morgan = require('morgan');
require('dotenv').config()
const app = express();
const authToken = require("./middlewares/auth_token");
const config = require('./config/config')

//SETTINGS
app.set('port', config.API_PORT ||  4000);


//MIDDLEWARES

app.use(morgan('dev'));
app.use(cors());
app.use(express.json());

app.use(authToken);
app.use('/api/user', require('./routes/user'));
app.use('/api/user/auth', require('./routes/auth'));
app.use('/api/user/profile', require('./routes/profile'));
app.use('/api/user/events', require('./routes/events'));


module.exports = app;

index.js

const app = require('./app');
require('./database/database');

async function main() {

    await app.listen(app.get('port'));
    console.log(`Server on port ${app.get('port')}`);
}
main();


对不起我的英语,哥伦比亚的问候