Merge pull request #3315 from freqtrade/flask_cors

Add cors support - needed for UI
This commit is contained in:
hroff-1902
2020-05-16 09:07:38 +03:00
committed by GitHub
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):