Removed cors and cross domain to see if still needed. Works without on server, need to test with phonegap