Issue
PME 2020 CU2 Dashboards/Diagram links don’t work in the EBO webstation even after providing the right credentials.
_____________________________________________________________
Product Line
Power Monitoring Expert 2020
EcoStruxure Building Operation 3.0.4.43
_____________________________________________________________
Environment
PME integration with EBO - Dashboards and Diagrams
_____________________________________________________________
Cause
The primary root cause was a change in browser behavior from Chrome version 80 and above. Now, this setting is forced to be a certain value so multiple values are sent for the same setting. The duplicate settings cause it to default to the wrong value that prevents embedding of certain web pages for security reasons.
The secondary root cause is the lack of including the localhost name in the list of allowed hosts that can embed PME webpages.
In EBO webstation, enable chrome developer tools and try login into the PME URL, same site attribute error will be thrown as shown in the below screenshot.
_____________________________________________________________
Resolution
*Warning: Take backups of any files prior to modifying them. Ensure the backups are in a location that will not be overwritten (i.e. the Desktop). *
Please perform the below steps on the PME server.
- Stop “ION Application Module CoreServicesHost” from system services.
- Backup the web.config from the location “C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\Applications\SystemDataService”.
- Replace the web.config from the location “C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\Applications\SystemDataService” with the attached one.
- Add and save the PME server hostnames (both http and https) into the list of hosts allowed to embed PME webpages. Include the localhost name as well as it seems that EBO uses localhost instead of the FQDN PME name.
- Do an iisreset on the PME server to force the above hostname list to be reloaded.
The web.config file attached is including the cookieSameSite="None" to the below line:
<authentication mode="Forms">
<forms name=".APPLICATIONFRAMEWORK" loginUrl="/Web/Auth" timeout="2880" protection="All" enableCrossAppRedirects="true" cookieSameSite="None" />
</authentication>
Double-check the Authorized Host:
PME authorized host list in web application MUST include the exact string of the hostname. If we add the IP address of the EBO as host server into this list and use the ServerName or Localhost to enter EBO web station PME does not work inside EBO (the list does not dissolve the IP address into the server name or vice versa). Therefore the authorized host list Must include the exact STRING being used for entering EBO web station.
See System Guide:
- https://digital-energy-help.se.com/pme2020/content/11_other_content/energyexpert/configuring/enableembeddingcontent.htm
- https://digital-energy-help.se.com/pme2020/content/11_other_content/energyexpert/reference/creatingwebappslinks.htm
Additional Note:
- This article is intended for the mentioned versions of PME & EBO & Browsers.
- If there are any other EBO_PME integration-related issues that prevail in the system, then this article is not intended to use. This is specific to the issue with the related error image shown in the description.
- The existing web.config file must be taken as a backup before replacing it with the attached file.