Thanks to visit codestin.com
Credit goes to github.com

Skip to content

withCredentials 冲突 #95

@speedornothing

Description

@speedornothing

页面引入 mock.js 后, jquery ajax 配置 withCredentials = true 是不起作用的, 去掉 mockjs 后 withCredentials 才会起作用. 猜测 mockjs 在劫持底层 xhr 后导致不兼容 withCredentials

我的使用场景比较特殊, 一部分数据是用 mockjs 模拟, 另一部分数据来自跨域请求

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