403 Response from Google Cloud Functions

Use could use postman to send the request and to get the JWT

gcloud auth print-identity-token


It seems to me that additional IAM functionality was added to Google Cloud Functions, and as a result, you may have not turned on allUser access to the function (FYI this give acess to the whole web).

  1. On the Cloud Functions homepage, highlight the Cloud Function you want to add all access to.

  2. Click "Permissions" on the top bar.

  3. Click "Add Principal" and type "allUsers" then select "Cloud Function Invokers" under "Cloud Function" in the Role box.

  4. Click "Save"

  5. Click "Allow Public Access"

**Updated for new Google UI for Cloud Functions