问题遇到的现象和发生背景
webapi 项目放到云服务器上,外网不能访问api站点,但是服务器自身用公网ip,还有同网段的其他服务器用公网ip都可以访问,我在本地访问报这个错误,防火墙也关掉了,部署的其他站点可以访问
运行结果及报错内容
Request URL: http://103.39.223.xx:8008/swagger/index.html
Referrer Policy: strict-origin-when-cross-origin
我的解答思路和尝试过的方法
我在start.cs 里边加了跨域,同IP段的web是可以访问接口的,但是外网就是访问不了
- <input type="checkbox" disabled="" />