For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

pcargill's avatar
pcargill
Icon for Nimbostratus rankNimbostratus
Dec 17, 2025

iRule causing requests to be duplicated (sometimes)

We are using an iRule to manage access to a SPA, which requires REWRITE to be disabled. Without this rule the SPA application does not work. However, when the rule is enabled we are seeing duplication of requests within our other (non SPA) applications. We notice this especially with file uploads and SQL insert requests. If we remove the iRule the non SPA applications work correctly, but the SPA application does not. 

Here is the iRule.

-----

when REWRITE_REQUEST {
    if {[HTTP::uri] starts_with "/apps/appname/uid/sso"} {
        REWRITE::disable
    }
}

when REWRITE_REQUEST_DONE {
    if {[HTTP::uri] starts_with "/uid"} {
        REWRITE::disable
    }
    if {[HTTP::uri] starts_with "/apps/appname/uid/sso"} {
        REWRITE::disable
    }

  REWRITE::post_process 1
}