ui: Add Accept header to retrieve JSON errors
This commit is contained in:
parent
de03863f1b
commit
bd8db24997
7 changed files with 11 additions and 5 deletions
|
|
@ -41,6 +41,7 @@
|
|||
"wantchoices/" + exercice_id,
|
||||
{
|
||||
method: "POST",
|
||||
headers: {'Accept': 'application/json'},
|
||||
body: JSON.stringify({ id: Number(flag.id) }),
|
||||
}
|
||||
)
|
||||
|
|
|
|||
Reference in a new issue