我为我的 GitHub Pages 托管博客添加了一个使用麦克风的操作。但是 Chrome 一直在一次又一次地请求媒体权限。我发现了Access Camera & Microphone在 Chrome 中支持。错误信息是:
"If you select Allow on a "http" URL your preference will not be remembered in future visits."
如何在 GitHub Pages 上设置或使用 HTTPS?或者至少我怎样才能让 Chrome 记住在首选项中允许。
最佳答案
自 2016 年 6 月(三年后)起,GitHub 页面开始支持 https!
GitHub Pages now officially1 supports HTTPS for all
<username>.github.io
sites. HTTPS provides a layer of encryption that prevents others from snooping on or tampering with traffic to your Pages site.You can now visit
*.github.io
sites using HTTPS and configure HTTPS enforcement for your site.
With HTTPS enforcement enabled, any HTTP requests to yourgithub.io
site will be transparently redirected to HTTPS.
无需在您的 Chrome 中进行任何调整。
关于html - 在 Google Chrome 中为 GitHub 页面使用 HTTPS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18971616/