CORS middleware works for app.get but not app.post

后端 未结 0 617
南旧
南旧 2020-11-22 01:59

When using the following code:

const cors = require(\'cors\')

const corsOptions = {
origin: \'http://localhost:3000\'}

app.get(`/api/test`, cors(corsOptions         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题