K
Kirby
Guest
\XF\Http\Request
has public data to check if the request was received through a trusted provider (Google, Cloudflare) - but it does not remember if it was and method ipMatchesRanges
is protected
.So if I need to check wether the request was received through a trusted provider (for example to decide if some request headers can be truested) I have to somewhat duplicate code and re-do checks that already had been done.
Could this be simplified a bit?
- Move the code...
Read more
Continue reading...