Skip to content

[Bug]: capacitor native http interceptor breaking requests (still happening event after the fix #7352) #7585

@jkd2bleu

Description

@jkd2bleu

Capacitor Version

💊 Capacitor Doctor 💊

Latest Dependencies:

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

Installed Dependencies:

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

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

Other API Details

npm 10.7.0
node v20.14.0
pod 1.15.2

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

The current behaviour is adding localhost/capacitor_https_interceptor to the url on IOS when CapacitorHttp is enabled and the request is not sent.

Expected Behavior

The request should be sent to the server

Project Reproduction

https://github.com/jkd2bleu/ReproduceCapacitorHttpBug

Additional Information

We can fix the issue by changing a line on ios/Capacitor/Capacitor/WebViewAssetHandler.swift like mentioned by this comment #7352 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugA confirmed bug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions