Tableau Javascript HTTPS API not working

I am trying to embed a report on my site, but I get the following error

Mixed content: the page at https://mywebsite.com/blah/blah 'was loaded via HTTPS, but requested the insecure resource' http://my-tableau-report-location.com/dashboard '. This request is blocked; content must be transmitted via HTTPS.

But in my JS API call, I have a url with 'HTTPS: //' ie ' https://my-tableau-report-location.com/dashboard '

Do I need to add an API to make it HTTPS? What am I missing?

+5
source share
2 answers

Most likely, the cause of this problem is that SSL was not enabled or configured properly on the Tableau server.

To do this, you will need a valid certificate. It can be configured on your server configuration utility tableau> SSL> External webserver SSL.

Here is a detailed guide

I would recommend skipping the "mutual" SSL configuration, as it seems to cause even more headaches.

+4
source

If you use a reverse proxy server like Nginx to provide SSL like me, you can edit tableau-2.2.2.min.js to solve this problem. Find the string "http" and change it to "https". Worked for me.

0
source

Source: https://habr.com/ru/post/1232110/


All Articles