V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
EthanDon
V2EX  ›  程序员

js 小白请教下这个 sign 是怎么生成的

  •  
  •   EthanDon · 2021-08-12 18:08:18 +08:00 · 1151 次点击
    这是一个创建于 987 天前的主题,其中的信息可能已经有所发展或是发生改变。

    aHR0cHM6Ly93d3cuNTY3eXVucGFuLmNvbS9maWxlLTEyMzQ1ODcuaHRtbA==

    有个 ajax 请求 load_down_addr10 这个 action,body 里的 sign 不知道哪里来的,源代码里没看到生成方式

    或者有办法绕过这个 sign 吗?比如用模拟浏览器访问

    imherer
        1
    imherer  
       2021-08-12 18:21:49 +08:00
    这个是 base64
    EthanDon
        2
    EthanDon  
    OP
       2021-08-12 18:22:53 +08:00
    @imherer 😂这个 base64 是我把网址编码了
    hanssx
        3
    hanssx  
       2021-08-12 18:25:53 +08:00
    代码中没有的话,那就在 cookie 、localStorage 、sessionStorage ?
    甚至有没有内存这一说?(这块不懂
    maichael
        4
    maichael  
       2021-08-12 19:22:08 +08:00

    后端生成的
    EthanDon
        5
    EthanDon  
    OP
       2021-08-12 19:24:24 +08:00
    @maichael 好的,感谢
    EthanDon
        6
    EthanDon  
    OP
       2021-08-12 19:25:49 +08:00
    @maichael 那能知道是哪里吐出来的吗?理论上我只需要 copy 这个 sign 就可以了对吧
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1345 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 17:42 · PVG 01:42 · LAX 10:42 · JFK 13:42
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.