Question

1
Replies
798
Views
Khawza Saad (SAADK)
PEGA
Senior System Architect
Pegasystems Inc.
US
SAADK Member since 2011 1 post
PEGA
Posted: March 21, 2019
Last activity: May 9, 2019
Posted: 21 Mar 2019 14:59 EDT
Last activity: 9 May 2019 1:48 EDT
Closed

Getting Server error - $(HttpStatus) from a javascript file to get get client http header information

The production server is behind a firewall as end user can access this from external url.

All other lower environments are not throwing this error, but the production is throwing the error whe we run the script file (below) Server error - $(HttpStatus)

The portion which is causing the error is:

var req = new XMLHttpRequest();

req.open('GET', document.location, false);

req.send(null);

var myHeaders = new Headers();

// associate array to store all values

var data = new Object();

// get all headers in one call and parse each item

var headers = req.getAllResponseHeaders() ;

***Moderator Edit-Vidyaranjan: Updated SR details***

Cloud Services Support Case Exists
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.