Skip to content

Instantly share code, notes, and snippets.

@acoyfellow
Last active September 15, 2018 13:42
Show Gist options
  • Save acoyfellow/a6e8f948f9ec26fe79d668e637278cc9 to your computer and use it in GitHub Desktop.
Save acoyfellow/a6e8f948f9ec26fe79d668e637278cc9 to your computer and use it in GitHub Desktop.
Example Response from CORS Node.js Google Cloud Function for returning Header information
{
"host":"us-central1-yourproject-prod.cloudfunctions.net",
"user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36",
"accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
"accept-language":"en-US,en;q=0.9,it;q=0.8",
"function-execution-id":"j02ssy1gb5ie",
"if-none-match":"W/\"44c-292EXCcJFqodAMVEau5YE7bcts8\"",
"upgrade-insecure-requests":"1",
"x-appengine-api-ticket":"476fbc0730996f5f",
"x-appengine-city":"philadelphia",
"x-appengine-citylatlong":"39.952584,-75.165222",
"x-appengine-country":"US",
"x-appengine-default-version-hostname":"q9640857244467f31-tp.appspot.com",
"x-appengine-https":"on",
"x-appengine-region":"pa",
"x-appengine-request-log-id":"5b9d0b0100ff06bc0bc74d814b0001737e71393634303835373234343436376633312d7470000165653164373936333964613737663032306666376563303234323330356238633a3300010104",
"x-appengine-user-ip":"68.82.112.206",
"x-cloud-trace-context":"6fd4387b2e18424f3462eec352a15d59/14149840639526626626;o=1",
"x-forwarded-for":"68.82.112.206, 68.82.112.206",
"x-forwarded-proto":"https",
"accept-encoding":"gzip"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment