原文:No 'Access-Control-Allow-Origin' header is present on the requested resource——Web Api跨域问题

最近使用C 写了一个简单的web api项目,在使用项目中的.cshtml文档测试的时候没有任何问题,但是在外部HBuilder上面编写.html通过Ajax调用web api路径时报错: No Access Control Allow Origin header is present on the requested resource. 导致这个问题的原因是在跨域访问web api的api时,C ...

2020-04-24 13:57 0 667 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM