Ask coding questions

← Back to all posts
How do I hide my API?
MayankSK44689

Hello There!
I created a Chatting App using replit but I wish to hide my APIs. Is there a way I can do that? I can't create ENV files and there's no option to create SECRETS in HTML, CSS, JS applications.

Voters
MayankSK44689
Comments
hotnewtop
Coder100

Do you know why? The reason is because it would be like a fence without a wall -- it isn't very hard to expose the secrets

What you want to do is to make a backend to store the secrets and make it so that the frontend does nothing but send 'requests' and the backend actually does the magic with secrets.