Reputation: 8357
I have "internal" routes in my app :
app.get('/myroute', function(req, res) {
res.status(200).send('Hello!');
});
But the route is also accessible from outside:
curl http://example.com/myroute/?this=that
How to restrict the use of this route to the app / domain itself, ideally with a nice error?
Upvotes: 1
Views: 955
Reputation: 7168
As I see it, you have a few options:
Upvotes: 2