我在运行 XAMPP 的 Mac 计算机上有一个带有一些 css 和 js 的 html。
当我尝试从我的 iPhone 访问 192.168.0.108(我的 IP 地址)时,我可以看到 html,但它没有任何 css 和 js。
在我的检查器中出现(用谷歌翻译翻译):
Failed to load resource: The certificate for this server is invalid. It is possible that you are dialing in to a server that claims to be "192.168.0.108", which could put at risk the confidentiality of your information.
我试图在我的 ip 末尾添加 :80 但没有。 有人可以帮助我吗? 谢谢!
[已解决] 只需在 URL 前添加 http://
最佳答案
只需在网址前加上http://
关于javascript - XAMPP:无法从智能手机 (iPhone) 加载访问 url 的资源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40350546/