window.location.href = workbook_url
My next feature I require to alert the user when the report finish downloading, and show progress. Currently it's not possible with href mechanism, so I tried using GET request to my custom workbook url.
The issue now is that my tableau server blocks the request due to CORS
This the error message:
Access to fetch at 'https://tableau_server.com/views/****/?Start%20Date%20Param=2019-11-03 from origin 'https://web_app.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.