Apps Script Return response of request values in JSON

function doGet(e) {
  return ContentService.createTextOutput(JSON.stringify(e)).setMimeType(ContentService.MimeType.JSON);
}

function doPost(e) {
  return ContentService.createTextOutput(JSON.stringify(e)).setMimeType(ContentService.MimeType.JSON);
}

You can use the code snippet to check the web app URLs and if you are making AJAX requests to the web app as an endpoint these will return the request values.