fixed cookie domains
This commit is contained in:
parent
4af6da6758
commit
d23b74cfb8
1 changed files with 2 additions and 3 deletions
|
@ -5,7 +5,6 @@ using System.Text;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using Fido2NetLib;
|
using Fido2NetLib;
|
||||||
using Fido2NetLib.Objects;
|
using Fido2NetLib.Objects;
|
||||||
using Microsoft.AspNetCore.Diagnostics;
|
|
||||||
using Microsoft.Data.Sqlite;
|
using Microsoft.Data.Sqlite;
|
||||||
using SQLitePCL;
|
using SQLitePCL;
|
||||||
|
|
||||||
|
@ -93,7 +92,7 @@ public static class Program {
|
||||||
SameSite = SameSiteMode.None,
|
SameSite = SameSiteMode.None,
|
||||||
MaxAge = TimeSpan.FromSeconds(s_lifetime),
|
MaxAge = TimeSpan.FromSeconds(s_lifetime),
|
||||||
};
|
};
|
||||||
if (string.IsNullOrEmpty(s_domain)) {
|
if (!string.IsNullOrEmpty(s_domain)) {
|
||||||
cookieOpts.Domain = s_domain;
|
cookieOpts.Domain = s_domain;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -158,7 +157,7 @@ public static class Program {
|
||||||
SameSite = SameSiteMode.None,
|
SameSite = SameSiteMode.None,
|
||||||
MaxAge = TimeSpan.FromSeconds(s_lifetime),
|
MaxAge = TimeSpan.FromSeconds(s_lifetime),
|
||||||
};
|
};
|
||||||
if (string.IsNullOrEmpty(s_domain)) {
|
if (!string.IsNullOrEmpty(s_domain)) {
|
||||||
cookieOpts.Domain = s_domain;
|
cookieOpts.Domain = s_domain;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue