flexiodata / flexio-web-app

Flex.io Web App
https://www.flex.io/app
MIT License
5 stars 2 forks source link

FEATURE: Let's add an HTTP header so we know where the user is running a function #575

Closed dzwillia closed 4 years ago

dzwillia commented 4 years ago

Let's add an HTTP header to our API calls so we know where they're being issued from:

headers: {
  "X-Requested-From": "googlesheets"
}

Obviously, the header key value can whatever you deem best, but I think the practice will be good for us knowing where calls are coming from. If we do this, I can update the admin area with richer information other than just "Api Request", etc.

dzwillia commented 4 years ago

Done.

(We used "X-Flexio-Source")