0

我正在使用浏览器同步和 Web api C# 2.0,当我调用方法登录时,它会在响应标头 set-cookie 中返回,但该方法没有在浏览器中设置 cookie。

browserSync.init({
    notify: false,
    cors: true,
    port: 6543,
    server: {
        baseDir: config.dir.src,
        routes: {
            "/bower_components": "bower_components"
        },
        middleware: [function(req, res, next) {
            next();
        }]
    }
});

编辑

登录返回cookie: 在此处输入图像描述

曲奇浏览器: 在此处输入图像描述

4

0 回答 0