删除多个阿里云视频时突然弹出Network Error
F12打开浏览器调试控制台后,显示如下:
Access to XMLHttpRequest at 'http://localhost:9001/eduservice/course/getPublishCourseInfo/1396396483573555202' from origin 'http://localhost:9528' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
:9001/eduservice/course/getPublishCourseInfo/1396396483573555202:1 Failed to load resource: net::ERR_FAILED
经过仔细检查,仍未找到出错原因
前端页面没有发现问题,后端controller也已加上@CrossOrigin
注解
现状是:数据可以添加至数据库,课程列表也能查询出添加的数据,只是课程状态为”未发布”
暂时先这样吧,此后若有解决方案再议。
- Post link: http://example.com/2021/05/23/%E9%A1%B9%E7%9B%AE%E8%B7%A8%E5%9F%9F%E9%97%AE%E9%A2%98/
- Copyright Notice: All articles in this blog are licensed under unless otherwise stated.