DEV Community

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

Collapse
 
lawrencejohnson profile image
Lawrence

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.