Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Note
For more information about the remove element, see the following topic on the Microsoft IIS.net Web site: Custom Headers <customHeaders>.
Removes a custom response header from the customHeaders collection. Headers that are removed from the customHeaders collection are not returned in responses from the Web server.
configuration Element [IIS Settings Schema]
system.webServer Section Group [IIS Settings Schema]
httpProtocol Element [IIS Settings Schema]
customHeaders Element for httpProtocol [IIS Settings Schema]
remove Element for customHeaders for httpProtocol [IIS Settings Schema]
Syntax
<remove name="field name of header" />
Attributes and Elements
The following sections describe attributes, child elements, and parent elements for this section.
Attributes
Attribute |
Description |
|---|---|
name |
Required string attribute. Specifies a field name for the custom response header. In a response, a field name precedes the related field value. |
Child Elements
None.
Parent Elements
Element |
Description |
|---|---|
configuration |
Specifies the root element in every configuration file that is used by IIS 7. |
system.webServer |
Specifies the top-level section group (in ApplicationHost.config) in which this element is defined. |
httpProtocol |
Specifies HTTP protocol configuration for a Web server. |
customHeaders |
Configures a custom response header to be returned in responses from the Web server. |
Remarks
For more information about the remove element, see the following topic on the Microsoft IIS.net Web site: Custom Headers <customHeaders>.
Element Information
Configuration locations |
Machine.config ApplicationHost.config Root application Web.config Application Web.config Directory Web.config |
Requirements |
Microsoft Internet Information Services (IIS) version 7.0 |