Skip to content

bug: Capacitor Cookies can not remove cookies that were set using a domain on web versions #6754

Open
@junioorpl

Description

@junioorpl

Bug Report

Capacitor Version

💊   Capacitor Doctor  💊 

Latest Dependencies:

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

Installed Dependencies:

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

[success] iOS looking great! 👌

Platform(s)

Web (Chrome 113.0.5672.92)

Current Behavior

When a cookie is set using the url param with a specific domain, the remove cookie function can not remove the cookie - IE. If you have a session cookie and try to remove it using the remove cookie function the session persists and the user is not logged out

Expected Behavior

The cookie should be removed when using url param with specific domain

Code Reproduction

Github Repo

Other Technical Details

npm --version output: 8.1.0

node --version output: v16.13.0

pod --version output (iOS issues only):

Additional Context

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