关于 Proxy 报错 404

来源:7-9 Vue项目首页 - 使用 axios 发送 ajax 请求

吃啥都爱蘸辣椒

2021-12-01

Dell 老师好,最近才买了这个课程,配置 Proxy 一直报错 404,vue-cli 版本是 4.5图片描述

写回答

2回答

慕勒6429283

2022-01-30

不好意思,得行了。

0
0

Dell

2021-12-06

报错截图我看一下,你本地直接访问api/index.json返回什么内容?

0
1
吃啥都爱蘸辣椒
回复上传不了图片 Request URL: http://localhost:8080/api/index.json Request Method: GET Status Code: 404 Not Found Remote Address: 127.0.0.1:8080 Referrer Policy: strict-origin-when-cross-origin connection: close content-length: 161 content-security-policy: default-src 'none' content-type: text/html; charset=utf-8 date: Wed, 08 Dec 2021 10:19:37 GMT x-content-type-options: nosniff x-powered-by: Express Accept: application/json, text/plain, */* Accept-Encoding: gzip, deflate, br Accept-Language: zh-CN,zh;q=0.9 Cache-Control: no-cache Connection: keep-alive Host: localhost:8080 Pragma: no-cache Referer: http://localhost:8080/ Sec-Fetch-Dest: empty Sec-Fetch-Mode: cors Sec-Fetch-Site: same-origin User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1
2021-12-08
共1条回复

Vue2.5-2.6-3.0开发去哪儿网App 零基础入门到实战

课程紧跟Vue3版本迭代,企业主流版本Vue2+Vue3全掌握

10675 学习 · 8191 问题

查看课程