PSM - Web connection is showing different results compared to when browsing the website from another source
Symptom
When connecting through a PSM web connection component, the site renders incorrectly, including buttons, fonts or missing menu items.
For example, the button and fonts in the site below:
Vs. 
Environment
Privileged Access Manager (PAM, self-hosted);Privilege Cloud PSM
PSM Web Connection via Chrome browser
Cause
This issue could be caused by several errors such as, RDS plugins, misconfigured AppLocker, Chrome hardening or most common - network restrictions on the PSM server network.
Resolution
To trouble shoot the error, please try the following steps:
- Try the solution in the KB below:
https://community.cyberark.com/s/article/PSM-When-connecting-to-web-applications-the-site-does-not-load-or-render-properly -
Try is to run App Locker in Audit only mode-
https://community.cyberark.com/s/article/How-to-configure-an-AppLocker-policy-for-audit-onlyIf the website functions normally with app-locker turned off, open a support case and provide app-locker logs to see what audits it found during the session.
Xray will include all the necessary logs for the support case.
If the website functions the same with app-locker in audit mode, turn it back to operational mode and proceed to step 3. - RDP into the PSM server, open Chrome in incognito window and browse to the site to try to recreate the issue. If the issue cannot be recreated this way, you might have to run Chrome in app-mode via the shadow user used in the session, do this the following way:
- Run: 'lusrmgr.msc' to get the user id (PSM-0200000000000000 for example) and reset its password
- Then use cmd for the following:
-- cd "c:\program file\google\chrome\application"
-- runas /user:PSM-02E0000000000000 ".\chrome.exe -app" - Once in Chrome, if the issue is reproduced, go into developer mode and check for any failed requests in the Network tab. You might see Connection Resets, or other connection errors when the site reaches out for external resources. This is demonstrated by the red X lines in the image below:
If network issues are observed, reach out to the network team to remove the specific network restrictions from the PSM server's network and continue testing. - If no network issues were observed, try the following step to backup (export) and delete the Chrome hardening policies, to see if that is the cause of the issue:
- Open the Registry editor and browse to the following Key ("Folder"):
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google
-- Right Click the "Google" key and select 'Export'. Save this .reg file export in order to back up the current policies.
-- Delete the "Google" key.
-- Test the site again to see if the issue is resolved > If the issue is resolved, open a support case and report that the Chrome hardening on the PSM causes the site to load improperly, then work with support to re-run the Chrome hardening.
If the issue is not resolved, re-import the registry key export by double-clicking it from the saved location, and open a new support case (providing error screenshots, details and PSM Xray)