async function fetchData(jsonData) {
	const endpoint = "https://rgiv.real-gifts.stage-ychen/endPointJ.php";
  
	try {
	  const response = await fetch(endpoint, {
		method: 'POST',
		headers: {
		  'Content-Type': 'application/json'
		},
		body: jsonData,
		// Ignore SSL certificate errors
		mode: 'no-cors',
		credentials: 'include'
	  });
  
	  if (!response.ok) {
		throw new Error('Network response was not ok');
	  }
  
	  const data = await response.text();
	  return data;
	} catch (error) {
	  throw new Error('Failed to fetch data: ' + error.message);
	}
  } Write your response using less than 150 words.
user