From 28ee2a7bf4978e223139aabd416953f5bf855573 Mon Sep 17 00:00:00 2001 From: Blallo Date: Wed, 7 Aug 2019 10:31:36 +0200 Subject: [PATCH] Fix Badge component in web app. --- bot.z_web/src/Badge.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.z_web/src/Badge.js b/bot.z_web/src/Badge.js index 7338db6..2e52509 100644 --- a/bot.z_web/src/Badge.js +++ b/bot.z_web/src/Badge.js @@ -49,7 +49,8 @@ class BadgePage extends React.Component { path = '/checkin'; } fetch(this.props.targetUrl + path, { - method: 'POST' + method: 'POST', + credentials: 'include' }) .then(response => response.json()) .then(data => this.setState({