Here’s some quick Google engine fodder. I suspect no one will ever need this because it is the result of me being the laziest coder on the face of the planet. (Yes, I’m proud).
I generally don’t. I’ve just used http: to refer to the viz and then rely on Tableau to redirect my request to https / 443
During the course of my career, this has saved me at least 15 keystrokes.
The “fix” is simple. Refer to the viz and the js file with https: like you should be doing in the first place.