express解決跨域post請求變成OPTIONS

在app.js中加入以下代碼: 代碼如下: app.all(’’, function(req, res, next) { res.header(「Access-Control-Allow-Origin」, ""); res.header(「Access-Control-Allow-Headers」, 「X-Requested-With,Content-Type」); res.header(「Acc
相關文章
相關標籤/搜索