I am creating a payment gateway integration where merchant can allow user to pay either via card, cryptocurrency or bankwire. I want only my frontend to be able to access the API. One way of doing is that whitelisting IP of my frontend on my flask application which acts as the backend. Any other suggestions to how properly secure the API's as it will transfer really secure information bw the internet
-
1You can use the jwt token header (jwt.io) for each API request and validate it at flask. Request for jwt token during signing in and then keep it in localstorage. append the jwt authentication in every request header.Nibin Baby– Nibin Baby2020-03-02 09:21:21 +00:00Commented Mar 2, 2020 at 9:21
Add a comment
|