DEV Community

Discussion on: How To Write Your First HTTP Request to NASA

lawrencejohnson profile image

Unless this is specifically for node, using JS to interact with an API using a private API key exposes it to anyone viewing the page. The proper way would be to use server-side processing.