![](/img/trans.png)
[英]Angular templateUrl blocked on https “This request has been blocked; the content must be served over HTTPS.”
[英]how to solve This request has been blocked; the content must be served over HTTPS
我应该如何调用它以避免阻塞请求?
const getLocation = async () => {
const LOCATION_URL = 'http://ip-api.com/json/?fields=country,city,lat,lon,timezone';
const response = await axios.get(LOCATION_URL);
return response.data;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.