阅读背景:

前端本地访问服务器文件404,谁能告诉我,koa request服务器转发为什么前端访问是个404..._Jiao Simeon的博客

来源:互联网 

这是代码,做转发用的,但是ctx.response.body会前端的是404

router.get('/getData', async (ctx, next) => {  let opts = Object.keys(ctx.query).reduce((pre, item, index) => {    return pre += `${item}=${encodeURIComponent(ctx.query[item])}&`r




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: