From f1280128c54ed4fea9098d32c17588be9c0dbe84 Mon Sep 17 00:00:00 2001 From: Ernst Widerberg Date: Wed, 24 Nov 2021 15:52:38 +0100 Subject: Add Access-Control-Expose-Headers: X-Total-Count to CORS --- src/main.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/main.py b/src/main.py index ff57f08..783698e 100755 --- a/src/main.py +++ b/src/main.py @@ -20,6 +20,7 @@ app.add_middleware( allow_credentials=True, allow_methods=["*"], allow_headers=["*"], + expose_headers=["X-Total-Count"], ) # TODO: X-Total-Count -- cgit v1.1