The root cause to the above issue, is generated due to the fact that:
Hope this helps, other people who are exhibiting the same problem.
Edit: this doesn't work . I realize now that I was already logged into the server and therefore the http call wasn't being made.
I have the same problem and I think it's because you and I are using a reverse proxy to serve Tableau over HTTPS instead of using Tableau's built in SSL certificate features.
I have worked around the issue by editing the JS file. Try using this script instead of the oficial one: https://cdn.jsdelivr.net/gh/Opticks-io/tableau_js/tableau-2.min.js
Probably though you shouldn't trust me enough to include my JS file, so just look for the "http" in tableau-2.2.2.min.js and change it to "https". That worked for me.