function setReqHeaders (headers) {
  const combinedHeaders = {
    ...headers,
    'X-Requested-With': 'XMLHttpRequest'
  };

  const arkimeCookie = getCookie('ARKIME-COOKIE');
  const cont3xtCookie = getCookie('CONT3XT-COOKIE');
  const parliamentCookie = getCookie('PARLIAMENT-COOKIE');

  if (cont3xtCookie) {
    combinedHeaders['x-cont3xt-cookie'] = decodeURIComponent(cont3xtCookie);
  }

  if (arkimeCookie) {
    combinedHeaders['x-arkime-cookie'] = decodeURIComponent(arkimeCookie);
  }

  if (parliamentCookie) {
    combinedHeaders['x-parliament-cookie'] = decodeURIComponent(parliamentCookie);
  }

  return combinedHeaders;
}
Sets the xsrf headers for cont3xt and arkime fetch requests
If supplied existing headers, combines those with the new cookie headers
as well as an 'X-Requested-With': 'XMLHttpRequest' header
@param {Object} headers - The existing headers to combine with the new xsrf headers
@returns {object} headers - The http headers object including the supplied
                            headers, 'X-Requested-With', and the cookies