-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
Description
Bug Report
Capacitor Version
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 4.6.1
@capacitor/core: 4.6.1
@capacitor/android: 4.6.1
@capacitor/ios: 4.6.1
Installed Dependencies:
@capacitor/cli: 4.6.1
@capacitor/core: 4.6.1
@capacitor/android: 4.6.1
@capacitor/ios: 4.6.1
[success] iOS looking great! 👌
[success] Android looking great! 👌
Platform(s)
Android
Current Behavior
Set a cookie on the server, using Set-Cookie header. Try deleting it on the client by manipulating document.cookie. It won't take effect and the Cookie header will still be sent.
Sample code to delete a cookie:
document.cookie = `${cookieName}=;expires=Thu, 01 Jan 1970 00:00:01 GMT;`;Expected Behavior
Unless forbidden/invisible due to HttpOnly, you should be able to unset a cookie on the client.
Code Reproduction
https://github.com/silviogutierrez/capacitor-http-tester (#6177)
- Clone the repository.
- Run
npm installandnpm cap syncto get both platforms working. - Run
npm run build && node server.jsto start the local server. - Open
http://localhost:3000and see how everything works on the browser. - Run
npx cap open iosand run the simulator, observe passing/failing tests. - Run
npx cap open androidand run the emulator, observe passing/failing test with this issue number.
Reactions are currently unavailable