You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Bug Report
Capacitor Version
Platform(s)
Android
Current Behavior
Set a cookie on the server, using
Set-Cookie
header. Try deleting it on the client by manipulatingdocument.cookie
. It won't take effect and theCookie
header will still be sent.Sample code to delete a cookie:
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)
npm install
andnpm cap sync
to get both platforms working.npm run build && node server.js
to start the local server.http://localhost:3000
and see how everything works on the browser.npx cap open ios
and run the simulator, observe passing/failing tests.npx cap open android
and run the emulator, observe passing/failing test with this issue number.The text was updated successfully, but these errors were encountered: