Is it safe to expose sendgrid api key to frontend #669
sagarPakhrin
started this conversation in
General
Replies: 1 comment 2 replies
-
No don't use it in client unless Sendgrid allows you to whitelist your hosting IP or domain. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was going through the docs to send email with react and sendgrid and I noticed
As far as I know during the build, the api key will be bundled and expose to the browser.
Now my questions is, is it safe to expose the api key to the frontend?
Anybody who can gain access to the api key can easily take it and spam the sendgrid contacts right?
Or is it ok?
Beta Was this translation helpful? Give feedback.
All reactions