@hmcts/ccpay-web-component 6.0.0-beta23 → 6.0.0-beta24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/hmcts-ccpay-web-component.umd.js +8 -2
- package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
- package/esm2015/lib/services/refunds/refunds.service.js +6 -2
- package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +6 -2
- package/esm5/lib/services/refunds/refunds.service.js +6 -2
- package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +6 -2
- package/fesm2015/hmcts-ccpay-web-component.js +10 -2
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +10 -2
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/package.json +1 -1
|
@@ -988,7 +988,11 @@ var WebComponentHttpClient = /** @class */ (function () {
|
|
|
988
988
|
}));
|
|
989
989
|
}
|
|
990
990
|
headers['X-Requested-With'] = 'XMLHttpRequest';
|
|
991
|
-
if (csrfToken === null)
|
|
991
|
+
if (csrfToken.content === null && document.cookie.split(';').find((/**
|
|
992
|
+
* @param {?} row
|
|
993
|
+
* @return {?}
|
|
994
|
+
*/
|
|
995
|
+
function (row) { return row.startsWith('XSRF-TOKEN'); })) !== undefined) {
|
|
992
996
|
headers['CSRF-Token'] = document.cookie.split(';').find((/**
|
|
993
997
|
* @param {?} row
|
|
994
998
|
* @return {?}
|
|
@@ -2013,7 +2017,11 @@ var RefundsService = /** @class */ (function () {
|
|
|
2013
2017
|
}));
|
|
2014
2018
|
}
|
|
2015
2019
|
headers['X-Requested-With'] = 'XMLHttpRequest';
|
|
2016
|
-
if (csrfToken.content === null)
|
|
2020
|
+
if (csrfToken.content === null && document.cookie.split(';').find((/**
|
|
2021
|
+
* @param {?} row
|
|
2022
|
+
* @return {?}
|
|
2023
|
+
*/
|
|
2024
|
+
function (row) { return row.startsWith('XSRF-TOKEN'); })) !== undefined) {
|
|
2017
2025
|
headers['CSRF-Token'] = document.cookie.split(';').find((/**
|
|
2018
2026
|
* @param {?} row
|
|
2019
2027
|
* @return {?}
|