一品网
  • 首页

MVC cookie 在谷歌90版本后跨域失败的问题


把cookie的 SameSite 设为none  SecurePolicy设为Always

                services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).
                    AddCookie(x =>
                    {
                        x.Cookie.SecurePolicy = CookieSecurePolicy.Always;
                        x.Cookie.SameSite = SameSiteMode.None;
                    });
netcoreASP.Net

相关


一、Asp.Net Core WebAPI——修改默认监听端口

.net core 2.2 部署CentOS7(3)安装Xshell操控CentOS7

.net core 部署在Centos 7/8 的几个小坑

通俗易懂,什么是.NET?什么是.NET Framework?什么是.NET Core?

ASP.NET中WebService的两种身份验证方法

.NET Core3.1 Dotnetty实战第二章

Asp.Net Mvc + ComBoost.Mvc快速开发

ASP.Net11.13

Dora.Interception: 一个为.NET Core度身定制的AOP框架

如何在ASP.NET Core应用中实现与第三方IoC/DI框架的整合?

Dora.Interception,为.NET Core度身打造的AOP框架 [5]:轻松地实现与其他AOP框架的整合

[ASP.NET Core 3框架揭秘] 跨平台开发体验: Linux

标签

一品网 冀ICP备14022925号-6