From 40d845cc3c0acd2ee3e9bbfdd39ba4e01e2d2829 Mon Sep 17 00:00:00 2001 From: Qing Date: Fri, 16 Feb 2024 10:16:05 +0800 Subject: [PATCH] backend: fix get X-Seed --- iopaint/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/iopaint/api.py b/iopaint/api.py index 2633741..90d6f36 100644 --- a/iopaint/api.py +++ b/iopaint/api.py @@ -127,6 +127,7 @@ def api_middleware(app: FastAPI): "allow_headers": ["*"], "allow_origins": ["*"], "allow_credentials": True, + "expose_headers": ["X-Seed"] } app.add_middleware(CORSMiddleware, **cors_options)