Reverse CORS & Fix Cookie Setting.

This commit is contained in:
Patrick Fic
2021-10-13 14:35:39 -07:00
parent 14309b5c96
commit 0ddf009f8f
7 changed files with 51 additions and 32 deletions

View File

@@ -35,10 +35,13 @@ export function PaymentsExportAllButton({
if (!!loadingCallback) loadingCallback(true);
let PartnerResponse;
if (bodyshop.accountingconfig && bodyshop.accountingconfig.qbo) {
PartnerResponse = await axios.post(`/qbo/payments`, {
withCredentials: true,
payments: paymentIds,
});
PartnerResponse = await axios.post(
`/qbo/payments`,
{
payments: paymentIds,
},
{ withCredentials: true }
);
} else {
let QbXmlResponse;
try {