I believe that the use of a server side programming language would allow for the desired results. Use a server side programming language instead of client site. Due to the Same-origin policy (http://en.wikipedia.org/wiki/Same-origin_policy).
It is completely fine to use a python server to help automate the REST API calls. The server type does not matter on your end, only as long as the calls made are per our documentation. The below article is a great reference point for calls and overall concepts of the REST API:
Signing In and Signing Out (Authentication)
Thanks for your response. Let me try making this api call from my server side code and see.