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).
When using the JavaScript API against a SSL protected Tableau Server, one should reference the viz you want to instantiate and the tableau js file itself via https: to indicate the protocol that is in play.
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.
Well, you can’t be lazy like this anymore. I’ve noticed since I upgraded to 8.1.7, that my JavaScript breaks (on the activateSheetAsync method, probably others) with the following error:
The “fix” is simple. Refer to the viz and the js file with https: like you should be doing in the first place.