search

Home  >  Q&A  >  body text

javascript - How to hide ajax requests in browsers such as chrome so that they will not be displayed in the console

Due to the confidentiality of the project, the address of the ajax request interface needs to be hidden. How do you do it?

淡淡烟草味淡淡烟草味2744 days ago5988

reply all(16)I'll reply

  • 天蓬老师

    天蓬老师2017-07-05 10:49:58

    Pure back-end rendering, no ajax required

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-07-05 10:49:58

    How can the security of the backend be guaranteed by the frontend?

    You can only sign a parameter at most

    reply
    0
  • 阿神

    阿神2017-07-05 10:49:58

    You can try using a relay server. Assuming that server B needs to be kept secret, you can instead request server A, and then use server A to forward the request to server B, so that B’s address will not be exposed

    reply
    0
  • 扔个三星炸死你

    扔个三星炸死你2017-07-05 10:49:58

    You can only be relatively hidden but not completely hidden

    reply
    0
  • typecho

    typecho2017-07-05 10:49:58

    Isn’t it enough to just make a custom browser? If you customize a network protocol, you won’t be able to see it. If you want to use a network protocol, you still want people to not be able to see it? The app can capture packets for you.

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-07-05 10:49:58

    Don’t release the project, it’s absolutely confidential

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-07-05 10:49:58

    In terms of simple hidden interfaces: secondary encapsulation
    You write a method on the server to request the interface. You point ajax to the secondary encapsulation method, so that the page sees that the request is your secondary encapsulation. Method, and then do some anti-counterfeiting requirements and security processing.

    reply
    0
  • 代言

    代言2017-07-05 10:49:58

    clearconsole();

    reply
    0
  • 学习ing

    学习ing2017-07-05 10:49:58

    What should I do if the console is not displayed and the network is displayed? Even if it is not displayed, what should I do if someone else captures the packets? The boy gave up his resistance. The front end is clear and not confidential. Let them fiddle with the back end

    reply
    0
  • 巴扎黑

    巴扎黑2017-07-05 10:49:58

    1. Back-end rendering, all data uses templates.
    2.Transfer service

    And I feel that there is no need to block. The front end is not safe anyway. To avoid packet capture, https can be used to improve security.

    reply
    0
  • Cancelreply