DX Infrastructure Management

 View Only

Tech Tip: Unable to embed UMP dashboards within web page: Refused to display in a frame because it set 'X-Frame-Options' to 'sameorigin' 

Oct 18, 2018 11:33 AM

Document ID : KB000116711
Last Modified Date : 02/10/2018
Issue:
We are trying to embed a direct link to a UMP Dashboard in a webpage. When we open the webpage it won't open.
When I open the HTML page, accessing the Chrome Console (CTRL+SHIFT+J) I see the below errors:

 

Refused to display 'http://UIMSERVER/widget/user/administrator/dashboard-designer/-/
dashboard_WAR_dashboard_INSTANCE_AAHVMB1nqV1o?user=administrator&password=P4ssw0rd&mode=presentation?embedded=true'
in a frame because it set 'X-Frame-Options' to 'sameorigin'.

 

UIMSERVER/widget/user/administrator/dashboard-designer/-/
dashboard_WAR_dashboard_INSTANCE_AAHVMB1nqV1o?user=administrator&password=P4ssw0rd&mode=presentation?embedded=true
Failed to load resource: net::ERR_BLOCKED_BY_RESPONSE
Environment:
UIM 8.5.1
Cause:
In previous version of UMP (UMP 8.2) x-frames were allowed by default, in 8.5.1 they are blocked.



 
Resolution:
You can allow x-frame by editing the wasp portal config file.

Follow the steps below:

1) Deactivate the UMP wasp
2) Open the portal-ext.properties file located in:
C:\Program Files (x86)\Nimsoft\probes\service\wasp\webapps\ROOT\WEB-INF\classes

3) Add the following 2 lines to the portal-ext file:

http.header.x-frame-options.whitelist.0.value=ALLOWALL
http.header.x-frame-options.enabled=true

4) Activate the wasp

Statistics
0 Favorited
8 Views
0 Files
0 Shares
0 Downloads