ng-docs.github.io
ng-docs.github.io copied to clipboard
angular httpclient 请求本地json没问题,请求远程json没有发送任何请求?
用angular httpclient 请求本地的json文件,毫无问题,但访问远程的json接口,完全没有发送请求,远程服务器没有任何访问记录,远程json是用spring boot写的,跨域也设置了,在其他程序上也用jquery访问成功,求大神指导。
看看 chrome network 中的记录,如果这个请求被cancel 了,说明跨域设置不对。