我正在使用带有 ssl 证书的 http-server 来测试 facebook 即时游戏。但是,当服务器运行时 localhost
让我的浏览器下载 index.html
文件而不是实际在浏览器中提供它。问题出现在 chrome 中,但 microsoft edge 似乎没问题。
最佳答案
使用此 URL http://127.0.0.1:8080/
而不是本地主机:8080
关于html - npm http-server 下载 index.html 而不是服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57240199/