bug记录-接口请求错误
yinglei -错误描述:
用 postman 测试接口 GET /api/orders/by/user/123,返回 Cannot GET
打开控制台之后,发现有一个红色报错:
Refused to load the font 'http://localhost:5000/api/ord...' because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'font-src' was not explicitly set, so 'default-src' is used as a fallback.
错误原因:
原来是路由配置中,路径写错了,后面多了一个空格
特别申明:本文内容来源网络,版权归原作者所有,如有侵权请立即与我们联系(cy198701067573@163.com),我们将及时处理。