从react-admin
前端调用后端 API 时,从浏览器控制台收到此错误:
Warning: Missing translation for key: "The X-Total-Count header is missing in the HTTP Response. The jsonServer Data Provider expects responses for lists of resources to contain this header with the total number of results to build the pagination. If you are using CORS, did you declare X-Total-Count in the Access-Control-Expose-Headers header?"
如果ng-admin
用来调用后端API,效果很好。