Skip to content

Instantly share code, notes, and snippets.

@berndverst
Created January 25, 2018 01:53
Show Gist options
  • Save berndverst/37d87570418bbee77641777e13bc10c9 to your computer and use it in GitHub Desktop.
Save berndverst/37d87570418bbee77641777e13bc10c9 to your computer and use it in GitHub Desktop.
API Proxy to hide API Credentials based on Azure Functions Proxy
{
"$schema": "http://json.schemastore.org/proxies",
"proxies": {
"API proxy with Credentials": {
"matchCondition": {
"route": "/api/{*route}",
"methods": [
"GET"
]
},
"backendUri": "https://readon.ly/{route}",
"requestOverrides": {
"backend.request.method": "get",
"backend.request.querystring.client_id": "XXXXXXXXX",
"backend.request.querystring.client_secret": "ZZZZZZZZZ"
}
}
}
}
@berndverst
Copy link
Author

berndverst commented Jan 25, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment