diff --git a/public/video-ui/src/services/WorkflowApi.js b/public/video-ui/src/services/WorkflowApi.js index 7f71f33b2..f29a92f6f 100644 --- a/public/video-ui/src/services/WorkflowApi.js +++ b/public/video-ui/src/services/WorkflowApi.js @@ -148,13 +148,15 @@ export default class WorkflowApi { prodOffice, priority }); - return pandaReqwest({ method: 'POST', url: `${WorkflowApi.workflowUrl}/api/stubs`, data: payload, crossOrigin: true, - withCredentials: true + withCredentials: true, + headers: { + "Content-Type": "application/json", + } }); } diff --git a/public/video-ui/src/services/pandaReqwest.js b/public/video-ui/src/services/pandaReqwest.js index 299ec4678..ee4b58d95 100644 --- a/public/video-ui/src/services/pandaReqwest.js +++ b/public/video-ui/src/services/pandaReqwest.js @@ -57,7 +57,7 @@ export const pandaReqwest = (reqwestBody, timeout = 0) => { // prettier-ignore if (payload.contentType === 'application/json' && typeof payload.data === 'object') { - payload.data = JSON.stringify(payload.data); + payload.body = JSON.stringify(payload.data); } }