boundaries-io

FREEMIUM
Verified
От Boundaries-io | Обновлено 14 days ago | Mapping
Популярность

9.8 / 10

Задержка

215ms

Уровень обслуживания

100%

Health Check

N/A

Назад ко всем обсуждениям

API KEY VISIBILITY

Rapid account: Homeown
homeown
5 years ago

Hi,
My apology in advance if question is retarded, but if I make API Call clientside (JS) , isn’t my API KEY visible to all on page source, therefore usable to anyone since there no other means of enforcement ?

If it is a viable concern is there a trade off to serverside alternative beyond performance (xfer response dataset to client ) and if so any advice to improve/offset?

thanks and sorry if question silly b/c I’m missing something basic

Rapid account: Kanecharles
kanecharles Commented 2 months ago

A common solution is to use a server-side proxy to hide the API key. This helps protect your key from being exposed on the website’s source code. If you need more computing time or are looking to improve performance, you can use time calculator to compare performance between options. Good luck!

Rapid account: Brianallen
brianallen Commented 4 months ago

When making API calls from the client side (JS), the API key can become visible in the website source code and can be used by anyone. This is an important security issue. Moving to the server side can help solve this problem, although it may impact performance. There are several ways to improve and compensate for the move to server-side with angel numbers, but the most important is to keep your API keys secure.

Rapid account: Homeown
homeown Commented 4 years ago

thank you for responding!

Rapid account: Homeown
homeown Commented 5 years ago

I’m guessing if clientside script contains API key it can still be considered protected as it runs under my domain name (others trying to utilize should not be allowed with same API key given that reason) - but then again I haven’t signed up yet so don’t know if that’s part of the account setup/config, so can you elaborate on this - how do I know others don’t use my key to make calls at my quota’s expense?
dumb question, but still…

Присоединяйтесь к обсуждению – добавьте комментарий ниже:

Войдите / Зарегистрируйтесь, чтобы публиковать новые комментарии