Aliasgher Nooruddin
Aliasgher Nooruddin

Reputation: 563

How to Secure my Backend API when connecting with Vue based Web Application

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

Upvotes: 0

Views: 490

Answers (1)

Three things here:

  • Token based authentication (as Nibin already said)
  • CORS on the server side to allow requests coming from your domain name only
  • HTTPS

Upvotes: 1

Related Questions