解决方案 在 bucket 权限那里设置 指定 localhost 通过 springboot 后台跨域的问题 用 @CrossOrigin解决 1 2 3 4 5 6 7 @CrossOrigin(origins = "http://localhost:3000",maxAge = 3600) @RequestMapping("/free/") public class OssController { @Resource private FileService ossService; } 前端代码 【使用 r