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]: XHR onreadystatechange not working for non POST requests #7417

Open ndrake opened 4 weeks ago

ndrake commented 4 weeks ago

Capacitor Version

💊 Capacitor Doctor 💊

Latest Dependencies:

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

Installed Dependencies:

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

[success] iOS looking great! 👌 [success] Android looking great! 👌

Other API Details

npm: 10.2.3
node: v18.19.0
pod: 1.14.3

Platforms Affected

Current Behavior

After upgrading our app v5 app, our Axios requests don't seem to be intercepted by CapacitorHttp. This is happening in both iOS and Android.

Expected Behavior

CapacitorHttp intercepts all requests like it did with Capacitor v5

Project Reproduction

https://github.com/ndrake/cap-http-bug-repro

Additional Information

Might be the same issue as this recently reported bug: https://github.com/ionic-team/capacitor/issues/7416

patrickjquinn commented 3 weeks ago

Can confirm this issue.

ionitron-bot[bot] commented 3 weeks 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.