I want my server to be able to check whether a request that came through came from within an iframe
If the request came from within an iframe, I want my server to be able to find the domain name of the parent of that iframe
Is any of the above possible and if yes how can I implement such a check in a Node.js
/Express.js
server?
Thank you in advance for any help
Just check the parent's url here:
request.headers.referer
If there is no iFrame, it will be undefined.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With