httpbin - 协议调试工具
httpstatuses - 协议状态码查询
httpie - cURL-like tool for humans
Fiddler
geminy066
V2EX  ›  HTTP

移动端 APP 的 HTTP 请求和浏览器的 HTTP 请求有什么区别?

  •  
  •   geminy066 · Jun 11, 2020 · 3420 views
    This topic created in 2195 days ago, the information mentioned may be changed or developed.

    移动端 APP 请求不存在跨域? 或者不存在非简单请求? 比如我网关加了请求头的限制,浏览器访问时加了不在白名单内的请求头后,会被网关拦截。而移动端 APP 却能正常访问,这是咋回事?

    6 replies    2020-06-12 09:12:52 +08:00
    JamieSoung
        1
    JamieSoung  
       Jun 11, 2020
    抓包能解决此问题
    takemeaway
        2
    takemeaway  
       Jun 11, 2020
    本身跨域就是浏览器策略,你的请求既然没通过浏览器,就不存在跨域一说。
    also24
        3
    also24  
       Jun 11, 2020
    1 、跨域是浏览器的限制,不是 http 的限制
    2 、请求头是否符合预期,请抓包确认
    massacreformash
        4
    massacreformash  
       Jun 11, 2020
    没有区别,看看你的过滤器配置是不是出问题了
    jugelizi
        5
    jugelizi  
       Jun 11, 2020 via iPhone
    试着命令行 curl
    cookii
        6
    cookii  
       Jun 12, 2020
    跨域是浏览器的限制,你用代码请求无视了后端的 http 头
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   955 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 20:39 · PVG 04:39 · LAX 13:39 · JFK 16:39
    ♥ Do have faith in what you're doing.