Cross domain http request for upload. Still needs to be tested