Missing Security element in browser Response Headers in PBIRS portal

Chandra Bhushan 20 Reputation points
2024-08-07T13:24:44.36+00:00

We have on-premise power bi report server installed in windows datacenter 2019 server.

We are missing some Reponse headers in the browser when report portal is inspected.

Under Web.config file in \Microsoft Power BI Report Server\PBIRS\ReportServerReportServer\ path

we have added this and restarted the service.

<system.webServer>

<httpProtocol>

  <customHeaders>

    <add name="Strict-Transport-Security" value="max-age=31536000; includeSubDomains; preload" />

    <add name="Cache-Control" value="no-cache,no-store,must-revalidate" />

    <add name="X-Frame-Options" value="DENY" />

    <add name="X-XSS-Protection" value="1; mode=block" />

    <add name="X-Content-Type-Options" value="nosniff" />

    <add name="Pragma" value="no-cache" />

    <add name="Content-Security-Policy" value="default-src 'self';" />

  </customHeaders>

</httpProtocol>
```  </system.webServer>

 

But none of the custom headers appear in the browser reponse headers.

Is there a different way to achive this.?
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
3,010 questions
0 comments No comments
{count} votes

Accepted answer
  1. ZoeHui-MSFT 41,291 Reputation points
    2024-08-08T02:14:19.2633333+00:00

    Hi @Chandra Bhushan,

    Please raise the issue to Power BI Community so that you could get more professional advice.

    Power BI Community

    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.