SSRS In SmartForm Content Control X-Frame-Options

  • 16 February 2021
  • 0 replies
  • 390 views

Userlevel 5
Badge +20
 

SSRS In Smartform Content Control X-Frame-Options

kbt155731

PRODUCT
K2 Cloud
K2 Five
K2 blackpearl
K2 smartforms
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.

Issue

When trying to use a SSRS report in a Content Control, you receive a broken link error, or the page will not display. This is due to a setting on SSRS where it will not allow the report to be displayed in an iFrame.

Symptoms

Open your Browser developer tools and look at the console. There should be an error similar to this:

"Refused to display [URL] in a frame because it set 'X-Frame-Options' to 'sameorigin'"

Resolution

The following Microsoft forum post goes into detail on this issue: https://social.msdn.microsoft.com/Forums/officeapps/en-US/73e90a28-a2f9-48c2-be20-52a72c66d51f/disible-xframeoptions-sameorigin-for-ssrs?forum=sqlreportingservices 

To work around this issue, set your SSRS link to be embed ready. Simply add rs:embed=true to your URL.


0 replies

Be the first to reply!

Reply