mirror of
https://github.com/kikootwo/ReadMeABook.git
synced 2026-06-02 20:30:10 +00:00
Implement centralized logging with RMABLogger
Replaces scattered console statements with a unified RMABLogger across backend API routes and services. Adds LOG_LEVEL-based filtering, job-aware database persistence, and context-based logging. Updates documentation to describe the new logging system and usage patterns. Also documents qBittorrent CSRF header fix
This commit is contained in:
@@ -176,6 +176,11 @@ type TorrentState = 'downloading' | 'uploading' | 'stalledDL' |
|
||||
- Enhanced error messages identifying SSL/TLS certificate issues with actionable guidance
|
||||
- Secure by default (SSL verification enabled), with clear security warnings when disabled
|
||||
- URL format: `https://qbt.domain.com:443/qbittorrent` fully supported
|
||||
**12. CSRF protection HTTP 401 errors** - qBittorrent v4.1.0+ has CSRF protection enabled by default, causing authentication failures (HTTP 401) when Referer/Origin headers missing. Browsers work because they auto-send these headers. Fixed by:
|
||||
- Adding `Referer` and `Origin` headers to all login requests
|
||||
- Headers set to qBittorrent base URL (e.g., `https://seedbox.example.com:443/qbittorrent`)
|
||||
- Applied to both `login()` and `testConnectionWithCredentials()` methods
|
||||
- Works with all qBittorrent versions and configurations
|
||||
|
||||
## Tech Stack
|
||||
|
||||
|
||||
Reference in New Issue
Block a user