app.use(function(req, res, next) { |
跨域请求前,一般浏览器会试探性发送OPTIONS请求.如果ok 就可以继续请求
理论基础:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
app.use(function(req, res, next) { |
跨域请求前,一般浏览器会试探性发送OPTIONS请求.如果ok 就可以继续请求
理论基础:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS