From 60d15e0f41c2efbd7edede777ba1e1e920c928f3 Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Sun, 17 Nov 2013 11:57:48 +0100 Subject: [PATCH] fix unittest --- specs/test_cors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/test_cors.py b/specs/test_cors.py index fe11fc1..6b3338c 100644 --- a/specs/test_cors.py +++ b/specs/test_cors.py @@ -26,7 +26,7 @@ def test_simple_CORS(): rv = client.get("/", headers={"ORIGIN": "https://example.tld"}) assert rv.headers["Access-Control-Allow-Origin"] == "https://example.tld" - assert rv.headers["Access-Control-Allow-Headers"] == "Origin, Content-Type" + assert rv.headers["Access-Control-Allow-Headers"] == "Origin, Content-Type, X-Origin" assert rv.headers["Access-Control-Allow-Credentials"] == "true" assert rv.headers["Access-Control-Allow-Methods"] == "GET, POST, PUT, DELETE" assert rv.headers["Access-Control-Expose-Headers"] == "X-Set-Cookie"