From 3475b9db9b4d5d58eea7bf8893192408c76c2445 Mon Sep 17 00:00:00 2001 From: Max Thonagel <12283268+thoniTUB@users.noreply.github.com> Date: Thu, 19 Aug 2021 10:29:36 +0200 Subject: [PATCH 1/2] set content-type for create dataset --- .../com/bakdata/conquery/resources/admin/ui/datasets.html.ftl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/src/main/resources/com/bakdata/conquery/resources/admin/ui/datasets.html.ftl b/backend/src/main/resources/com/bakdata/conquery/resources/admin/ui/datasets.html.ftl index 598001b901..0f3ffb7aa0 100644 --- a/backend/src/main/resources/com/bakdata/conquery/resources/admin/ui/datasets.html.ftl +++ b/backend/src/main/resources/com/bakdata/conquery/resources/admin/ui/datasets.html.ftl @@ -32,6 +32,9 @@ '/admin/datasets', { method: 'post', + headers: { + 'Content-Type': 'application/json' + }, credentials: 'same-origin', body: JSON.stringify({ name: document.getElementById('entity_id').value, From c13ad71797bf4f20756312e2f394646015f96c1c Mon Sep 17 00:00:00 2001 From: Max Thonagel <12283268+thoniTUB@users.noreply.github.com> Date: Thu, 19 Aug 2021 10:54:56 +0200 Subject: [PATCH 2/2] format document --- .../resources/admin/ui/datasets.html.ftl | 39 ++++++++++--------- 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/backend/src/main/resources/com/bakdata/conquery/resources/admin/ui/datasets.html.ftl b/backend/src/main/resources/com/bakdata/conquery/resources/admin/ui/datasets.html.ftl index 0f3ffb7aa0..7865384c90 100644 --- a/backend/src/main/resources/com/bakdata/conquery/resources/admin/ui/datasets.html.ftl +++ b/backend/src/main/resources/com/bakdata/conquery/resources/admin/ui/datasets.html.ftl @@ -3,22 +3,25 @@