Forum Discussion
http header irule needing CR/LF or not
hi ,
we use an irule for inserting http header .This irule was introduced couple of years ago and we never had issues. (irule is just adding some headers in http response - see hereunder for irule [ it's shortened version as we use more headers than the one mentioned ] )
when HTTP_RESPONSE { HTTP::header insert X-XSS-Protection "1; mode=block" HTTP::header insert X-Content-Type-Options "nosniff" }
Application using this loadbalancer setup with irule is upgraded lately and now they are telling us that they are getting errors back when they connect via virtual server (so error on client side) :
“The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF.”
So looks to me like LF characters are missing when we insert headers . Aren't these inserted when using using or do we need to add them manually ?
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com