From 9509f2977933db8af264ca0c95dc44214d6140c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Dumay?= Date: Tue, 15 Jan 2019 14:52:30 +0100 Subject: [PATCH] fix: Upgrading to Graylog 2.5.x - Protecting against CSRF, HTTP header required --- VERSION | 2 +- src/flask_graylog_bundle/server.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 6e8bf73..17e51c3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.0 +0.1.1 diff --git a/src/flask_graylog_bundle/server.py b/src/flask_graylog_bundle/server.py index e22c044..8bbf858 100644 --- a/src/flask_graylog_bundle/server.py +++ b/src/flask_graylog_bundle/server.py @@ -23,7 +23,8 @@ def client(self): server=self.app.config['GRAYLOG_API_URL'], username=self.app.config['GRAYLOG_API_USERNAME'], password=self.app.config['GRAYLOG_API_PASSWORD'], - timeout=self.app.config.get("GRAYLOG_API_TIMEOUT", 10) + timeout=self.app.config.get("GRAYLOG_API_TIMEOUT", 10), + headers={"X-Requested-By": "flask-graylog-bundle"} ) return self._client