Express.js check if requisition is made by iframe

1

How to check if the request is made by iframe in "express.js" ?

Example:

site A:

<iframe src="http://siteb.com/router">

site B:

app.get('/router', (req, res, next) =>
    // logica...
})

The question is not the source but simply verify that it is being loaded from a iframe .

    
asked by anonymous 06.12.2017 / 20:59

0 answers