My app works locally but returns 401 or "invalid API key" in production
What I'm trying to do
You've got an API key (a kind of password your app uses to talk to another service) working perfectly on your own computer. You deploy, and suddenly every call to that same service fails with a 401 error or an "invalid API key" message — as if the key…