Forum Discussion
Getting x frame options issue while opening my report through html
- Anonymous2 years ago
Hi, husnainnourose
Append rs:Embed=true to the report URL. Starting from Reporting Services 2016, you can append to the report URL, which will remove the ‘X-Frame-Options’ from the responsers:Embed=true. Your report URL would then look like this: http://your-server-name/reports/path/and/reportname?rs:Embed=true.
Set a custom Content-Security-Policy. In SQL Report Server 2019, you can set a custom header. At least in Chrome, it will respect this value before ‘X-Frame-Option’. Content-Security-Policy: frame-ancestors <uri>Additionally, you can enable CORS.
Check the iframe src link. If you’re setting the src of an iframe with parameters, make sure the link structure is correct. For example, pass the tag before the parameters for the SSRS reportrs:embed=true.
You can refer to the following link:
Integrate report from Reporting server 2016 via iframe in SharePoint 2013 - Stack Overflow
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, husnainnourose
Append rs:Embed=true to the report URL. Starting from Reporting Services 2016, you can append to the report URL, which will remove the ‘X-Frame-Options’ from the responsers:Embed=true. Your report URL would then look like this: http://your-server-name/reports/path/and/reportname?rs:Embed=true.
Set a custom Content-Security-Policy. In SQL Report Server 2019, you can set a custom header. At least in Chrome, it will respect this value before ‘X-Frame-Option’. Content-Security-Policy: frame-ancestors <uri>Additionally, you can enable CORS.
Check the iframe src link. If you’re setting the src of an iframe with parameters, make sure the link structure is correct. For example, pass the tag before the parameters for the SSRS reportrs:embed=true.
You can refer to the following link:
Integrate report from Reporting server 2016 via iframe in SharePoint 2013 - Stack Overflow
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.