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

Leaking the API key? #2

Closed
alan2207 opened this issue Mar 12, 2023 · 1 comment
Closed

Leaking the API key? #2

alan2207 opened this issue Mar 12, 2023 · 1 comment

Comments

@alan2207
Copy link

Hey @whoiskatrin, nice project, congrats!

I was curious about its implementation and noticed that the openai API key is publicly visible. That's because the props from getServerSideProps are injected into the page. This might lead to unexpected billing costs If someone decides to abuse it.

Screenshot 2023-03-12 at 08 14 28

Have you considered using an API route for the translation part where you could use the API key without exposing it to the public??

@whoiskatrin
Copy link
Owner

yes, finally fixed it, not an issue any more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants