PhoneGap: Fix CORS support