Lampros Tampourlos
Lampros Tampourlos

Reputation: 136

AdonisJS Request Origin

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

Answers (1)

hlozancic
hlozancic

Reputation: 1499

Check "host" and "origin" header using this: https://adonisjs.com/docs/4.1/request#_headers

Upvotes: 1

Related Questions