github therobbiedavis/Listenarr 0.1.17
Canary 0.1.17

latest releases: 0.2.45, 0.2.44, 0.2.40...
pre-release2 months ago

This pull request improves authentication and cookie handling, especially for scenarios where the frontend and backend are on different origins or behind a reverse proxy. The changes ensure that cookies are set and cleared correctly for cross-origin authentication and logout flows.

Authentication and Cookie Policy Improvements:

  • Updated the cookie SameSite policy to use None in production (for cross-origin support) and Lax in development, ensuring authentication works when the frontend is hosted on a different origin.
  • Enhanced the logout event to explicitly overwrite the authentication cookie with an expired one using the same attributes, guaranteeing proper cookie removal even when behind a proxy.

API Endpoint Adjustments:

  • Added the [AllowAnonymous] attribute to the Logout endpoint in AccountController, allowing unauthenticated users to call the logout route (useful for cleaning up cookies after session expiration).

Automated canary build

  • Version: 0.1.17
  • Commit: c1bf02a
  • Original PR: #44

Don't miss a new Listenarr release

NewReleases is sending notifications on new releases.