Skip to content

[Bug]: capacitor native http interceptor breaking requests #7352

@jongbonga

Description

@jongbonga

Capacitor Version

💊   Capacitor Doctor  💊 

Latest Dependencies:

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

Installed Dependencies:

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

[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

  • iOS
  • Android
  • Web

Current Behavior

Since 5.7.1 the http requests are either missing params or adding extra elements to the URL.
The current behaviour is adding localhost/_capacitor_https_interceptor_ to the url on IOS when CapacitorHttp is enabled

using mapbox sdk
Screenshot 2024-03-18 at 15 44 27

using axios
Screenshot 2024-03-18 at 16 27 54

Expected Behavior

Foreign elements shouldn't break the request

Project Reproduction

https://github.com/jongbonga/code-reproduction

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions