Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how does proxy url work? #6

Closed
leolivier opened this issue Feb 1, 2019 · 1 comment
Closed

how does proxy url work? #6

leolivier opened this issue Feb 1, 2019 · 1 comment
Labels
question Further information is requested

Comments

@leolivier
Copy link

Hi @tsamaya
Thank you for this javascript library.
Can you explain somewhere how proxyUrl is working? You give some examples of the API using this but I don't understand what the proxy should send. If it's the API key, then what's the use? You can steal the key by running the proxy url, no?

@tsamaya
Copy link
Owner

tsamaya commented Mar 10, 2019

Hi @leolivier ,
did you have a look the sample https://github.com/tsamaya/opencage-api-client/blob/master/samples/node-proxy-sample.js ?
In my other repositories you will find code to deploy AWS lambda and Google Cloud Functions in order to proxy the request. But a simple PHP page taking the request and adding your Opencage Data API Key is far enough as well.
Please let me know if I can help further.

@tsamaya tsamaya added the question Further information is requested label Mar 10, 2019
@tsamaya tsamaya closed this as completed May 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants