diff --git a/assets/new-request-form.js b/assets/new-request-form.js index ee75771cd..b3292bc2d 100644 --- a/assets/new-request-form.js +++ b/assets/new-request-form.js @@ -806,6 +806,9 @@ function AnswerBotModal({ token, articles, requestId, }) { article_id: getExpandedArticleId(), interaction_access_token: token, }), + headers: { + "Content-Type": "application/json", + }, }); if (response.ok) { // TODO: Proper redirect and notification @@ -823,6 +826,9 @@ function AnswerBotModal({ token, articles, requestId, }) { interaction_access_token: token, reason_id: 0, }), + headers: { + "Content-Type": "application/json", + }, }); if (response.ok) { // TODO: Proper redirect and notification diff --git a/src/modules/new-request-form/answer-bot-modal/AnswerBotModal.tsx b/src/modules/new-request-form/answer-bot-modal/AnswerBotModal.tsx index cfbc04a48..fedbb679a 100644 --- a/src/modules/new-request-form/answer-bot-modal/AnswerBotModal.tsx +++ b/src/modules/new-request-form/answer-bot-modal/AnswerBotModal.tsx @@ -84,6 +84,9 @@ export function AnswerBotModal({ article_id: getExpandedArticleId(), interaction_access_token: token, }), + headers: { + "Content-Type": "application/json", + }, }); if (response.ok) { // TODO: Proper redirect and notification @@ -101,6 +104,9 @@ export function AnswerBotModal({ interaction_access_token: token, reason_id: 0, }), + headers: { + "Content-Type": "application/json", + }, }); if (response.ok) { // TODO: Proper redirect and notification