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
I have a form in my homepage than when submitted it adds data to a database.
I have it coded so that it sends a fetch with POST to /API.
It works perfectly, however I'm worried anyone could use for example Postman and add a lot of records to my database.
What's the proper and easier way to secure my API so that it can only get requests from my website?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have a form in my homepage than when submitted it adds data to a database.
I have it coded so that it sends a fetch with POST to /API.
It works perfectly, however I'm worried anyone could use for example Postman and add a lot of records to my database.
What's the proper and easier way to secure my API so that it can only get requests from my website?
Beta Was this translation helpful? Give feedback.
All reactions