mirror of
https://github.com/inventree/InvenTree.git
synced 2026-12-03 04:41:52 +00:00
The /auth subrequest used to check access to media files did not set the Host header, so it reached the server as the upstream address (e.g. inventree-server:8000 or localhost:6000). When that address is not in ALLOWED_HOSTS, the server rejects the request with a 400 error, which nginx returns as a 500 error for every media file.