So we have an open API for ZIP codes and would like it so only specified websites can use it. Currently we are using CORS in combination with keys to stop unauthorized websites from using it but there are some cases where that won't do anything. Since the API is used with Javascript the key is right in the Javascript as well.
How would I make this secure? It seems that no matter how I do it, people will be able to use it from other websites.