Skip to content
Snippets Groups Projects
Verified Commit dfd7d4b2 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: send contennt type to server #299

parent 4642447a
No related branches found
No related tags found
No related merge requests found
...@@ -229,7 +229,7 @@ class Login extends CustomElement { ...@@ -229,7 +229,7 @@ class Login extends CustomElement {
disabled: false, disabled: false,
features: { features: {
forgotPassword: true, forgotPassword: true,
redirectToFirstSuccessUrl: true, redirectToFirstSuccessUrl: false,
}, },
actions: {}, actions: {},
...@@ -261,7 +261,8 @@ class Login extends CustomElement { ...@@ -261,7 +261,8 @@ class Login extends CustomElement {
method: "POST", method: "POST",
mode: "same-origin", mode: "same-origin",
headers: { headers: {
accept: "application/json", "Accept": "application/json",
"Content-Type": "application/json; charset=utf-8",
}, },
credentials: "same-origin", credentials: "same-origin",
}, },
...@@ -270,7 +271,8 @@ class Login extends CustomElement { ...@@ -270,7 +271,8 @@ class Login extends CustomElement {
method: "POST", method: "POST",
mode: "same-origin", mode: "same-origin",
headers: { headers: {
accept: "application/json", "Accept": "application/json",
"Content-Type": "application/json; charset=utf-8",
}, },
credentials: "same-origin", credentials: "same-origin",
}, },
...@@ -279,7 +281,8 @@ class Login extends CustomElement { ...@@ -279,7 +281,8 @@ class Login extends CustomElement {
method: "POST", method: "POST",
mode: "same-origin", mode: "same-origin",
headers: { headers: {
accept: "application/json", "Accept": "application/json",
"Content-Type": "application/json; charset=utf-8",
}, },
credentials: "same-origin", credentials: "same-origin",
}, },
...@@ -288,7 +291,8 @@ class Login extends CustomElement { ...@@ -288,7 +291,8 @@ class Login extends CustomElement {
method: "POST", method: "POST",
mode: "same-origin", mode: "same-origin",
headers: { headers: {
accept: "application/json", "Accept": "application/json",
"Content-Type": "application/json; charset=utf-8",
}, },
credentials: "same-origin", credentials: "same-origin",
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment