0
How to check if request is made by iframe
in "express js."?
Example:
WEBSITE TO:
<iframe src="http://siteb.com/router">
site B:
app.get('/router', (req, res, next) =>
// logica...
})
The issue is not the bad origin simply check whether it is being loaded from a iframe
.
I think this is going to be hard to get straight through the express because it is back-end Lauro, has to know if the page is inside a iframe directly on the front end.
– BrTkCa
At the front end I’m wearing
window.top !== window.self
to check... works bad is not what I seek :(– Lauro Moraes
Can you apply logic to know when it’s valid or not? You can check the source url, if it is different from your knowledge generalize as frame..
– BrTkCa