Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

WAF Rewrite HTML option disables javascript

Hello guys.

I am using waf and I noticed that when Rewrite HTML is checked javascript is not loading.

For example I have a phpsysinfo script running. When I access it, while it is supposed to use bootstrap to display the page, it redirects me to the static view. I asked regarding this in the phpsysinfo github page and told me that this happens when javascript is not working (which lead me to start searching)

So what I found out is that when I uncheck Rewrite HTML, then it works. Is this normal or is it maybe a bug?



This thread was automatically locked due to age.
  • HTML rewriting affects all files with HTTP content type text/* or *xml*. * is a wildcard. To prevent corruption during HTML rewriting, make sure that other file types (example: binary files) have the correct HTTP content type.

    Example: If a web server's hostname is yourcompany.local, but the hosted web server’s hostname is yourcompany.com, absolute links like [a href="http://yourcompany.local/"] are broken if the link is not rewritten to [a href="http://yourcompany.com/"] before delivery to the client.

    You don't need to select this option if yourcompany.com is configured on your web server or if internal links on your web pages are always realized as relative links.

    ===================================================
    If a post solves your question please use the 'Verify Answer' button.

    Thanks & Regards,
    _______________________________________________________________

    Vivek Jagad | Team Lead, Global Support & Services 


    Sophos Community | Product Documentation | Sophos Techvids | SMS
    If a post solves your question please use the 'Verify Answer' button.

  • Hello and thanks for your reply!

    Yes, in my case Rewrite HTML is apparently not needed.

    Nevertheless, it should not hurt to have it on. But as mentioned, when I have it on, javascript is not working..

    Is this supposed to happen, or is it a bug?

     
    Sophos XG Home Licence.

    Machine: Barracuda F12 appliance (Intel Celeron N3350 CPU, 6GB Ram, 80GB sata SSD)

Share Feedback
×

Submitted a Tech Support Case lately from the Support Portal?