You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The hooks to fetch te data call the services directly from the frontend.
This exposes the API key to the user. Since there are rate limits and pricing models linked to the amount of calls, it would be easy to abuse API keys.
How to reproduce
Setup a project
Load the webpage and inspect the network
The API key will be exposed to any visitor
How to solve
The frontend should not be aware of the API endpoint and should go through it's own API to fetch the data.
The hooks should only handle the API you manage yourself and the data it provides.
The text was updated successfully, but these errors were encountered:
The hooks to fetch te data call the services directly from the frontend.
This exposes the API key to the user. Since there are rate limits and pricing models linked to the amount of calls, it would be easy to abuse API keys.
How to reproduce
How to solve
The frontend should not be aware of the API endpoint and should go through it's own API to fetch the data.
The hooks should only handle the API you manage yourself and the data it provides.
The text was updated successfully, but these errors were encountered: