请明确说明,谷歌浏览器,Firefox和Safari浏览器不存在该问题。该错误仅出现在facebook / Messenger浏览器中。
问题:当尝试通过Facebook Messenger浏览器使用Facebook登录名登录时(例如,通过在Messenger聊天中单击链接www.jobdirecto.com),出现错误,表明Facebook已检测到我的网站未使用安全连接。
更奇怪的是,我可以在此错误消息的页面中看到安全符号。
我的网站通过以下几种方式强制使用HTTP。
如果我运行heroku certs:auto,这就是我得到的
Domain Status Reason Last Updated
────────────────── ─────────── ──────────────────────────────── ──────────────
jobdirecto.com Failed DNS redirect not forwarding path about 2 months
www.jobdirecto.com Cert issued about 2 months
(我不认为失败状态是问题所在,因为在同时使用jobdirecto.com或www.jobdirecto.com时都会出现该错误)
在我的index.js快递路线中,我有这个
app.get("*", function(req, res) {
res.redirect("https://" + req.headers.host + req.url);});
我的app.js中也有这个
if(location.protocol == "http" && window.location.hostname != "localhost"){
location.href = location.href.replace("http://","https://");}
如果与此相关,那么我正在使用Firebase身份验证。
任何解决此问题的提示将不胜感激。