Correctly test cors

This commit is contained in:
Matthias
2020-05-20 19:43:52 +02:00
parent 2fbd31f5e0
commit a11651ae67
2 changed files with 15 additions and 9 deletions

View File

@@ -90,7 +90,7 @@ class ApiServer(RPC):
self._config = freqtrade.config
self.app = Flask(__name__)
self._cors = CORS(self.app,
resources={r"/api/*": {"origins": "*", "supports_credentials": True}},
resources={r"/api/*": {"supports_credentials": True, }}
)
# Setup the Flask-JWT-Extended extension