How to restrict people from visiting my Express.js website?

20 Views Asked by At

I made an API with Express.js that if you visit it or do a GET request, you will receive sats. I want to restrict it to my Netlify website/game (which is pointed to a custom domain) and so everyone else will get a 403 or something. How can I do that? I have already tried using CORS to restrict it, and it hasn’t helped, and I have searched everywhere, and there is nothing.

0

There are 0 best solutions below