2022年5月20日

前端请求报错:No 'Access-Control-Allow-Origin' header is present on the requested resource.

摘要: 前端使用 Ajax 请求后端的数据接口时,报错 :No 'Access-Control-Allow-Origin' header is present on the requested resource. 解决方法:在 controller 层的方法上面添加 @CrossOrigin 注解 阅读全文

posted @ 2022-05-20 10:01 一颗蛋50斤 阅读(758) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示