cancel
Showing results for 
Search instead for 
Did you mean: 

JavaScript rewriting Issue

JoshuaD
New Contributor

JavaScript rewriting Issue

During the process of passing web resources through Pulse Secure, there is a rewriting process of HTML and JavaScript. I've discovered an issue.
There is a function which has been altered in that an opening parenthesis character has been added, breaking the minified file. Compare the source to the sections that are underlined in red in the web console screenshots.

Example:

Correct code snippet:
function clz32(x){return(x>>>=0)?31-Math.floor(Math.log(x+.5)*Math.LOG2E):32}})}

Incorrect code snippet (passing through Pulse Secure) :
function clz32(x){return((x>>>=)0)?31-Math.floor(Math.log(x+.5)*Math.LOG2E):32}})


Source File: https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.min.js
1 REPLY 1
zanyterp
Moderator

Re: JavaScript rewriting Issue

If you are continuing to experience failure with custom headers enabled (Users>Resource Policies>Web>Rewriting>Custom Headers), please open a case with our support team
We will need to work with the development team to identify what is happening that it is not being rewritten correctly. Another option would be to create a don't rewrite, with redirect policy for https://cdnjs.cloudfare.com/ajax/libs/babel-core/5.8.23/browser.min.js.