|
@@ -14,7 +14,7 @@ module.exports = options => {
|
|
|
const method = _.get(request, 'method');
|
|
|
const uri = _.get(request, 'url');
|
|
|
// 本地或局域网请求,放过
|
|
|
- if (process.env.NODE_ENV !== 'development') await next();
|
|
|
+ if (process.env.NODE_ENV === 'development') await next();
|
|
|
// get方法放过
|
|
|
else if (method === 'GET') await next();
|
|
|
else {
|