Add CORS middleware

This commit is contained in:
2026-06-12 13:52:44 +02:00
parent 5e8c826714
commit 336c6aa34e
2 changed files with 15 additions and 3 deletions

View File

@@ -18,12 +18,11 @@ Issues:
- hardcoded secret key in auth.py -> centralise env var loading
- i don't like the error handling in the scanner - doesn't pass errors correctly
- cors for frontend: https://fastapi.tiangolo.com/tutorial/cors
- disableCards var isn't doing anything
- Load cors from env var or something
- BackgroundScanner shouldn't get a single session for the whole lifecycle
- input validation maybe
- too many imports
- inconsistent logging (request logging?)
- rate limiting maybe
- pretty sure the controllers are doing too much stuff
- hardware call tests or sth
- .env.example
- hardware call tests or sth