Jump to content

How to secure api keys in JavaScript?


totalbeginner

Recommended Posts

People making Javascript applications simply don't care that the API keys are publicly visible. You'll have to adopt that mentality if your application is going to be Javascript-based.

 

If keeping the API key secret is that important, program a proxy on your server for the API instead and have Javascript use AJAX to communicate with it.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...