錯(cuò)誤描述:
用 postman 測(cè)試接口,返回 Cannot GET /api/orders/by/user/123
打開控制臺(tái)之后垦页,發(fā)現(xiàn)有一個(gè)紅色報(bào)錯(cuò):
Refused to load the font 'http://localhost:5000/api/orders/by/user/res/Soleil.woff2' 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.
錯(cuò)誤原因:
路由配置中产上,路徑寫錯(cuò)了睹晒,后面多了一個(gè)空格