getRequestHeaderString = function (requestHeaders) {
	let requestHeaderString = "";
	if (requestHeaders) {
		for (const header of requestHeaders) {
			if (requestHeaderString.length === 0) {
				requestHeaderString = `${header.name}:${encodeURIComponent(header.value)}`;
			} else {
				requestHeaderString = `${requestHeaderString},${header.name}:${encodeURIComponent(header.value)}`;
			}
		}
		return requestHeaderString;
	}
	return undefined;
}
Gets the part of the CORS URL that represents the HTTP headers to send.
@param {Array.<{name: string, value:string}>} requestHeaders the HTTP headers to send
@returns {string} to be used as request-headers component in CORS URL.