---
title: "Comment by Ngwube Precious on \"How to hide your front-end API keys\" | Hashnode"
description: "nice article, really helped me, but I couldn&#39;t host the proxy server on heroku, keeps throwing this error src/config.ts(27,7): error TS2322: Type &#39;{ rou"
url: "https://hashnode.com/posts/how-to-hide-your-front-end-api-keys/5e445ab98c89a92316ccdc6e/comment/5fc2438555b779631e1acdf4"
---

[Discussion](https://hashnode.com/posts/how-to-hide-your-front-end-api-keys/5e445ab98c89a92316ccdc6e)

Comment [How to hide your front-end API keys](https://hashnode.com/posts/how-to-hide-your-front-end-api-keys/5e445ab98c89a92316ccdc6e)

[Ngwube Precious](https://hashnode.com/@Prewsh)

[Nov 28, 2020](https://hashnode.com/posts/how-to-hide-your-front-end-api-keys/5e445ab98c89a92316ccdc6e/comment/5fc2438555b779631e1acdf4)

nice article, really helped me, but I couldn't host the proxy server on heroku, keeps throwing this error

`src/config.ts(27,7): error TS2322: Type '{ route: string; allowedMethods: string[]; target: string; headers: { Accept: string; Authorization: string; }; body: string; }' is not assignable to type 'Proxy'`

I don't know if anybody, has the same error and I am also trying to work on Github graphql API, that's why I added `body`
