关于bug:bug记录接口请求错误

谬误形容

用 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.

谬误起因

原来是路由配置中,门路写错了,前面多了一个空格

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理