Bug ID 1006153: POST Request sent using window.fetch() does not include the message body

Last Modified: Jan 20, 2023

Bug Tracker

Affected Product:  See more info
BIG-IP APM(all modules)

Known Affected Versions:
16.0.0, 16.0.0.1, 16.0.1, 16.0.1.1, 16.0.1.2, 16.1.0, 16.1.1, 16.1.2, 16.1.2.1, 16.1.2.2, 16.1.3, 16.1.3.1, 16.1.3.2, 16.1.3.3

Opened: Mar 25, 2021
Severity: 4-Minor

Symptoms

Fetch API sends a POST request without body parameters

Impact

Web applications do not work as expected.

Conditions

A web application uses the window.fetch() function

Workaround

You can use a custom iRule to fix this issue; there is no general iRule for this purpose. A sample iRule: XXXX is the file to be changed when REWRITE_REQUEST_DONE { if { [HTTP::path] ends_with "XXXX"} { REWRITE::post_process 1 set do_fix 1 } } when REWRITE_RESPONSE_DONE { if {[info exists do_fix]} { unset do_fix set strt [string first {<script>try} [REWRITE::payload]] if {$strt > 0} { REWRITE::payload replace $strt 0 {<script>window.fetch=void(0)</script>} } } }

Fix Information

None

Behavior Change