Skip to content

SecResponseBodyAccess Off does not have an effect #1643

Closed
@zoltan-fedor

Description

@zoltan-fedor

Hey,

We had to turn off SecResponseBodyAccess due to the lack of SecDisableBackendCompression flag in libmodsecurity (and/or NGinx connector) (see #1470), but simply setting the SecResponseBodyAccess flag to Off had no effect, we also had to set the SecResponseBodyMimeType to some non-existent type to stop the response body being inspected.

NGinx 1.13.7
ModSeurity 3.0.0

Original setting:

SecResponseBodyAccess On
SecResponseBodyMimeType text/plain text/html text/xml

Setting still inspecting the response body:

SecResponseBodyAccess Off
SecResponseBodyMimeType text/plain text/html text/xml

Settings which finally stoped response body inspection

SecResponseBodyAccess Off
SecResponseBodyMimeType text/nosuchtype

Metadata

Metadata

Assignees

Labels

3.xRelated to ModSecurity version 3.x

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions