Authenticate Flask rest API

25 Views Asked by At

I have a use case: I have a static website without server side code and I want to send an email whenever someone submits a form on website. To send an email i am using flask rest api. I have deployed the api seperately and then i am calling the api from the website using javascript. Now I am wondering how can i protect my api? I am new to authentication and authorization. The website is open to all which means its a non user website and any one can submit their queries. How can i secure my API And call the api using javascript with the required credentials or token.

0

There are 0 best solutions below