Support Article
HTTP 400 errors display and unable to download images and script
SA-62869
Summary
HTTP 400 errors display and unable to download images and scripts with MuleSoft proxy configuration.
Error Messages
HTTP 400 erorrs display at the user side.
On the server, static content requests display however, they do not contain the AccessGroup hash and errors are thrown.
Steps to Reproduce
- Create a widget which can render UI contents of the Case Manager portal
- Promote the widget code in a non-Pega application and verify that the widget renders successfully
- Replace the gateway URL with reverse proxy URL (Mule ESB) to redirect the traffic through the proxy URL
Root Cause
The Mulesoft proxy configuration by default has FollowRedirects enabled. There were no HTTP 303 for the AccessGroup switch occurring at the browser level because the MuleSoft proxy was following and making the requests. These 303 redirects have to hit the browser so, the base URL contains the AccessGroup hash. Thus, the static content requests also contain the AccessGroup hash as well.
Resolution
Perform the following local-change:Set FollowRedirects to false in the Mulesoft configuration.
Published August 24, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.