01-Jun-2023 01:58 - edited 01-Jun-2023 02:08
Hi
I created an iRule to permit/deny the access to the URL /#/admin according to the client address.
My problem is neither [HTTP::uri] nor [HTTP::path] contain #/admin
I observed navigators and curl "removes" the # and its trailing part (#/admin) from the GET
GET / HTTP1.1
But, on the other hand, the page retrieved from / is different to the one from /#/admin, then, somehow #/admin reaches the server and shows different HTML, doesn't it?
I'm confused.
How to make the iRule detect /#/admin?
Solved! Go to Solution.
01-Jun-2023 23:31
As I suspected, the #/admin is processed in the client side and it is not sent to the server. The next wikipedia article explains the use of fragments:
01-Jun-2023 02:37 - edited 01-Jun-2023 02:39
Hi Marycasey
But it seems the Referer is empty.
I added these two lines to my iRule
set referer [HTTP::header Referer]
log "REFERER: $referer"
and nothing appears after REFERER: in the /var/log/ltm
Thanks anyway
P.D: the response from the server contains "Referrer-Policy: no-referrer"
01-Jun-2023 03:00
Hi
I have found #/admin in a JavaScript created by, I think, AngularJS
<a href="#/admin/contexts" data-ng-class="{\'active\': location.path() === \'/admin/contexts\'}" >
01-Jun-2023 23:31
As I suspected, the #/admin is processed in the client side and it is not sent to the server. The next wikipedia article explains the use of fragments: