github therobbiedavis/Listenarr 0.1.16
Canary 0.1.16

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

This pull request improves authentication handling and environment-specific configuration in the Listenarr API. The main changes enhance logout logic to better support multiple authentication types, refactor CORS and forwarded headers setup for safer production and easier development, and clarify HTTPS redirection responsibilities. These updates make the application more robust when deployed behind a reverse proxy and simplify local development.

Authentication improvements:

  • Enhanced the Logout endpoint in AccountController.cs to distinguish between cookie-based and API key authentication, provide more detailed logging, and return clearer responses.

Environment-aware configuration:

  • Refactored CORS setup in Program.cs to only enable CORS for local development environments, relying on the reverse proxy for CORS in production. Added support for additional localhost origins. [1] [2]
  • Updated forwarded headers configuration to only forward essential headers (X-Forwarded-For, X-Forwarded-Proto), and cleared trusted proxies/networks for flexibility in controlled environments.

Reverse proxy compatibility:

  • Removed HTTPS redirection from the application, clarifying that it should be handled by the reverse proxy.

Automated canary build

  • Version: 0.1.16
  • Commit: 9460429
  • Original PR: #42

Don't miss a new Listenarr release

NewReleases is sending notifications on new releases.