Skip to content

日常问题记录 #62

@creeperyang

Description

@creeperyang

1. Charles等抓包工具替换response失败

  1. 描述: map locale 功能去拦截接口请求,发现浏览器请求失败(无response)。

  2. 原因:因为接口请求跨域,首先会有 preflight(Options)请求,此时这个请求也被map locale拦截了,导致preflight失败,从而导致跨域请求失败。

  3. 解决:过滤掉 preflight 请求。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions