163
Views
5
Comments
Solved
Configuring HTTP header Referrer-Policy
Application Type
Traditional Web

Hi Community,

        I want to set the "Referrer-Policy: no-referrer" in HTTPS headers for security purpose on my on premise application, I know it should be done on Factory configiration but how to do it, Can any tell me how to perform this action step by step.

Thanks in Advance

2021-03-30 13-44-25
Balaji Ravikumar

Hi @Manish Jawla 

 I already cross verified this post, I just want the step by step procedure for my case, Like which XML file should i upload in shared configure to set the "Referrer-Policy: no-referrer" in HTTPS headers. 

Can you explain with any screent shots.

Thanks


2021-08-12 11-00-27
Nordin Ahdi
 
MVP
Solution

Hi Balaji,

You can follow the steps explain here and then add the following shared configuration to the form:

  1. <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    
        <xsl:output method="xml" indent="yes" encoding="UTF-8"/> 
    
        <xsl:template match="@*|node()">
            <xsl:copy>
                <xsl:apply-templates select="@*|node()"/>
            </xsl:copy>
        </xsl:template>
     
        <xsl:template match="/configuration/system.webServer/httpProtocol/customHeaders">
            <xsl:copy>
                <xsl:apply-templates select="@*|node()"/>
                <add name="Referrer-Policy" value="no-referrer" />
               
            </xsl:copy>
        </xsl:template>
    
    </xsl:stylesheet>
2021-03-30 13-44-25
Balaji Ravikumar

Thanks @Nordin Ahdi I will try the mentioned steps and will make this post as solved.

2021-08-12 11-00-27
Nordin Ahdi
 
MVP
2021-08-12 11-00-27
Nordin Ahdi
 
MVP
Solution

Hi Balaji,

You can follow the steps explain here and then add the following shared configuration to the form:

  1. <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    
        <xsl:output method="xml" indent="yes" encoding="UTF-8"/> 
    
        <xsl:template match="@*|node()">
            <xsl:copy>
                <xsl:apply-templates select="@*|node()"/>
            </xsl:copy>
        </xsl:template>
     
        <xsl:template match="/configuration/system.webServer/httpProtocol/customHeaders">
            <xsl:copy>
                <xsl:apply-templates select="@*|node()"/>
                <add name="Referrer-Policy" value="no-referrer" />
               
            </xsl:copy>
        </xsl:template>
    
    </xsl:stylesheet>
2021-03-30 13-44-25
Balaji Ravikumar

Hi @Manish Jawla 

 I already cross verified this post, I just want the step by step procedure for my case, Like which XML file should i upload in shared configure to set the "Referrer-Policy: no-referrer" in HTTPS headers. 

Can you explain with any screent shots.

Thanks


2021-08-12 11-00-27
Nordin Ahdi
 
MVP
Solution

Hi Balaji,

You can follow the steps explain here and then add the following shared configuration to the form:

  1. <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    
        <xsl:output method="xml" indent="yes" encoding="UTF-8"/> 
    
        <xsl:template match="@*|node()">
            <xsl:copy>
                <xsl:apply-templates select="@*|node()"/>
            </xsl:copy>
        </xsl:template>
     
        <xsl:template match="/configuration/system.webServer/httpProtocol/customHeaders">
            <xsl:copy>
                <xsl:apply-templates select="@*|node()"/>
                <add name="Referrer-Policy" value="no-referrer" />
               
            </xsl:copy>
        </xsl:template>
    
    </xsl:stylesheet>
2021-03-30 13-44-25
Balaji Ravikumar

Thanks @Nordin Ahdi I will try the mentioned steps and will make this post as solved.

2021-08-12 11-00-27
Nordin Ahdi
 
MVP
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.