Hey, Is there a way to hide/obfuscate the API URL request from the network tab of chrome inspector? My API annoyingly uses a url parameter to pass an API key which is displayed in the network tab... Theres no other way (no header auth for this API source).
Stockton
2 years ago
I think for this you would actually have to add in another service in order to hide the API key server-side.
Toddle would send a somewhat generic request to your backend service, which would then make the actual API call to the other tool with the API key.
Any requests made from a browser will always be visible… that’s the nature of the front-end. You should t use sensitive API keys in the browser.
broberto
2 years ago
Yup, I’d use Fastgen 🙂 they make this really simple, and their free plan is very generous. If you need a discount code hmu. Or if you’d be okay with little code, you can use Supabase.
Andreas Møller
2 years ago
Yes if you need to add a secret to the request you need to go through e.g. fastgen