react-admin No 'Access-Control-Allow-Origin'
问题 I'm trying to use react-admin in my project, which requires Content-Range . So in my server I have written : @GetMapping("admin/user") ResponseEntity<List<User> > getAll() { System.out.println(new Date());; HttpHeaders responseHeaders = new HttpHeaders(); responseHeaders.set("Content-Range", "posts 0-"+userRepository.findAll().size()+"/"+userRepository.findAll().size()); return ResponseEntity.ok() .headers(responseHeaders) .body(userRepository.findAll()); } Also configured CORS : @Bean public