diff --git a/Server/main.py b/Server/main.py index 0fd080c..18ac0f4 100644 --- a/Server/main.py +++ b/Server/main.py @@ -33,7 +33,6 @@ allow_credentials=True, allow_methods=["*"], allow_headers=["*"], - allow_credentials=True, ) diff --git a/Server/tests/test_auth.py b/Server/tests/test_auth.py index 06da4db..0815495 100644 --- a/Server/tests/test_auth.py +++ b/Server/tests/test_auth.py @@ -25,7 +25,10 @@ def test_investigator_upload_and_audit(tmp_path): client = TestClient(app) files = {"file": ("small.txt", "hello world")} - headers = {"Authorization": "Bearer testtoken123"} + headers = { + "Authorization": "Bearer testtoken123", + "X-Analyze-Key": "forensic-pro-suite-demo-analyze-key" + } r = client.post("/api/analyze", files=files, headers=headers) assert r.status_code == 200 data = r.json()