[英]how to solve This request has been blocked; the content must be served over HTTPS
how should I make this called to avoid blocking request?
我应该如何调用它以避免阻塞请求?
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;
}
Website secured by ssl (https) can only access resources that are also secured with ssl受 ssl (https) 保护的网站只能访问同样受 ssl 保护的资源
Checking the documentation reveals that:检查文档显示:
256-bit SSL encryption is not available for this free API.
256 位 SSL 加密不适用于此免费 API。 Please see our pro service.
请查看我们的专业服务。
You have a few options now:你现在有几个选择:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.