Please review the post linked above for potential solutions. Also some additional information on the full desired result of the process may allow for a better understanding as well give the community members greater ability to offer solutions.
I was able to resolve this issue. It was just that in our application, all ajax requests were pre-processed to add the 'token' field on its header (to pass in the session id). Since our server side code and the client side code reside on the same host, it wasn't an issue but the tableau api calls were failing. I bypass that little logic when I find that I'm making calls to the tableau server which is on a different host and that fixed it.