I have an Apache2 web server as well as a Python hug server running. Both run on different ports. I now want to sent a request to the hug server using jQuery. As this is cross domain, I think I have to use something similar to this: How do I send an AJAX request on a different port with jQuery? jsonp with callback parameter.
My questions is: - is my approach reasonable? - does hug support jsonp with callback? - could there be a better solution to communicate between javascript and the Python hug API?