ionic-team / capacitor

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️
https://capacitorjs.com
MIT License
11.24k stars 955 forks source link

[Bug]: Capacitor HTTP Plugin Post request not working #7391

Closed WurstMitBrot closed 1 month ago

WurstMitBrot commented 1 month ago

Capacitor Version

Latest Dependencies:

@capacitor/cli: 5.7.4 @capacitor/core: 5.7.4 @capacitor/android: 5.7.4 @capacitor/ios: 5.7.4

Installed Dependencies:

@capacitor/android: not installed @capacitor/cli: 5.7.4 @capacitor/core: 5.7.4 @capacitor/ios: 5.7.4

Other API Details

npm --version output: 10.5.0
node --verison output: v21.7.1

Platforms Affected

Current Behavior

Using the following configuration: plugins: { CapacitorHttp: { enabled: true, }, }

When making a post request i get the following error: Using fetch: image

Using RTK Query: image

Using CapacitorHttp.post Everything works.

Expected Behavior

Using the fetch function should make a request and return the result.

Project Reproduction

https://github.com/WurstMitBrot/capacitor-fetch-example

Additional Information

I haven't checked the issue on android yet. With version 5.7.0 it worked.

ionitron-bot[bot] commented 1 month ago

This issue has been labeled as type: bug. This label is added to issues that that have been reproduced and are being tracked in our internal issue tracker.

ionitron-bot[bot] commented 3 days ago

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.