How to hide key api from client side?

Asked

Viewed 192 times

3

Hello, I’m working with the youtube api and at the moment the client makes the requests I need to put a developer’s published key in the url (in this case I am), ex:

https://www.googleapis.com/youtube/v3/search?part=snippet&key=MINHA_KEY

Is there any problem in leaving this key exposed? If there is any way to hide it?

Note: I am using AJAX requests and the result is a json with the searched data!

  • In the configuration of this key you do not define which domains are allowed to use it?

  • Configuro yes. I was actually wondering if there is any risk in leaving it exposed!!!

  • Then I guess you haven’t, since it will only work on your own site.

  • Ah yes...vlw!!!!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.