@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.
@@ -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 {?}