---
title: "Comment by Gafar Popoola on \"How to hide your front-end API keys\" | Hashnode"
description: "Great article. This solution only partly addresses the problem from the browser&#39;s point of view. The proxy server can still be tricked by spoofing the origi"
url: "https://hashnode.com/posts/how-to-hide-your-front-end-api-keys/5e445ab98c89a92316ccdc6e/comment/5e48f6958c89a92316cd39e9"
---

[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)

[Gafar Popoola](https://hashnode.com/@gafarp)

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

Great article. This solution only partly addresses the problem from the browser's point of view. The proxy server can still be tricked by spoofing the origin header using a tool like curl. There's really no way your proxy server would differentiate a spoofed request from a request that originated from the browser.

[Mauricio Robayo](https://hashnode.com/@mauriciorobayo)

[Feb 18, 2020](https://hashnode.com/posts/how-to-hide-your-front-end-api-keys/5e445ab98c89a92316ccdc6e/comment/5e48f6958c89a92316cd39e9#reply-5e4c0b61205a551d167e7524)

You are 100% right: This only addresses the problem from the browser's point of view. Thanks for the feedback and for bringing up the issue.

[Pankaj C.](https://hashnode.com/@pkj)

[Feb 22, 2020](https://hashnode.com/posts/how-to-hide-your-front-end-api-keys/5e445ab98c89a92316ccdc6e/comment/5e48f6958c89a92316cd39e9#reply-5e51a879205a551d167ed7e6)

What can be a solution for this problem?
