Stop mobile network proxy from injecting JavaScript

后端 未结 13 994
鱼传尺愫
鱼传尺愫 2020-11-29 18:50

I am using a mobile network based internet connection and the source code is being rewritten when they present the site to the end user.

In the localhost my website

13条回答
  •  难免孤独
    2020-11-29 19:45

    If you're writing you own websites, adding a header worked for me:

    PHP:
        Header("Cache-Control: no-transform");
    C#:
        Response.Cache.SetNoTransforms();
    VB.Net:
        Response.Cache.SetNoTransforms()
    

    Be sure to use it before any data has been sent to the browser.

提交回复
热议问题