I have a Java REST Service which takes post request. My Cordova packaged as Android App cannot make a post request.
I get a 403 Forbidden error. I know many people have given many suggestions. I've tried all of those but still can't solve. Any help will help greatly.
My Cordova config file looks like this.
<content src="index.html" />
<plugin name="cordova-plugin-whitelist" spec="1" />
<access origin="*" />
<access uri="*" subdomains="true" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
<allow-intent href="*" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
I tried removing based on suggestion from someone. But still doesn't work.
Do you use cookies in Ajax?
I tried this to resolve this.