react-native-cookies / cookies

🍪 Cookie Manager for React Native
MIT License
480 stars 95 forks source link

Clear cookie belonging to specified url #147

Closed qroll closed 2 years ago

qroll commented 2 years ago

clearByName deletes all cookies with the specified name, even if the cookie's domain does not match the provided url. In fact, the url doesn't seem to be used outside of the initial check that it is valid.

Added a domain match check, based on the behaviour that the requesting domain can set cookies for itself or for a parent domain.

safaiyeh commented 2 years ago

Much needed change thanks!

safaiyeh commented 2 years ago

:tada: This PR is included in version 6.2.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: