Add cors support - needed for UI

This commit is contained in:
Matthias
2020-05-16 07:07:24 +02:00
parent 788d75572b
commit 61f6acb5c9
4 changed files with 5 additions and 1 deletions

View File

@@ -49,6 +49,7 @@ def client_get(client, url):
def assert_response(response, expected_code=200):
assert response.status_code == expected_code
assert response.content_type == "application/json"
assert ('Access-Control-Allow-Origin', '*') in response.headers._list
def test_api_not_found(botclient):