Reputation: 136
I would like to retrieve the request's origin using adonisJS framework. Is there any way similar to express.js:
req.get('origin');
Upvotes: 0
Views: 743
Reputation: 1499
Check "host" and "origin" header using this: https://adonisjs.com/docs/4.1/request#_headers
Upvotes: 1