I am trying to make an external AJAX request from my index.html page and getting HTTP 404 error. The symptoms are similar to what is described in Ajax readyState 4 status 404 statustext error , but in my case it doesn't work in either cases. Please don't assume that the URL is incorrect. It works if I use regular browser (served by PG app)
Note that the URL is external (an internet site) and the protocol is HTTPS
My configuration (relevant)
<plugin name="cordova-plugin-whitelist" source="npm" spec="~1.2.1" />
<access origin="*" />
<allow-intent href="*" />
<allow-navigation href="*" />
<gap:plugin name="cordova-plugin-whitelist" source="npm" />
<meta http-equiv="Content-Security-Policy" content="default-src * gap: ws: https://ssl.gstatic.com;img-src * data: content:;style-src * 'unsafe-inline' data: blob:;script-src * 'unsafe-inline' 'unsafe-eval' data: blob:;">
Honestly, I spend last two days trying out different options. Any help would be greatly appreciated.
[Mod note]: From dup Ajax 404 issue :
In addition to what I have mentioned in that post,
Message was edited by: Kerri Shotts
Hi, are you after phonegap specific support?
This is the forum for another Adobe product - Business Catalyst.
I am sorry I picked the wrong forum. Can you help me to move it under the right group ?
Have you tried reaching the URI from another web browser? Does that request return a 404?
What device(s) and OS version(s) are you testing with?
Please share some code that illustrates your issue along with error messages (if any).
Have you installed a build from PGB? PG Developer App is great, but it's not the source of truth when determining if something will work for certain on a device (lots of edge cases).
Also: use modern tags (<plugin>) in config.xml (but this shouldn't make a difference in this case).