diff --git a/.talismanrc b/.talismanrc index 3871661..5106f4c 100644 --- a/.talismanrc +++ b/.talismanrc @@ -13,7 +13,7 @@ fileignoreconfig: - filename: Contentstack.Core/Models/Asset.cs checksum: d192718723e6cb2aa8f08f873d3a7ea7268c89cc15da3bdeea4c16fd304c410e - filename: Contentstack.Core/Models/Query.cs - checksum: fb9b5e4014f937d66b9028b35ea53d750e4d2659daaa48a2941c02f37429725f + checksum: 5816324addf20bc9ed66496ed3f18a90a2a140763378f899798d2d3b019c5f14 - filename: Contentstack.Core/Models/Taxonomy.cs checksum: 751a725d94eff7d845bb22a5ce80a5529bb62971373de39288149fff3d024930 - filename: .github/workflows/nuget-publish.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index 14b0d61..4f1bb70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +### Version: 2.22.2 +#### Date: July-14-2025 + +##### Fix: +- Fixed token issue for Live Preview + ### Version: 2.22.1 #### Date: June-13-2025 diff --git a/CODEOWNERS b/CODEOWNERS index 1be7e0d..0773923 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1 +1 @@ -* @contentstack/security-admin +* @contentstack/security-admin \ No newline at end of file diff --git a/Contentstack.Core/Models/Query.cs b/Contentstack.Core/Models/Query.cs index 252cd42..c50a09e 100644 --- a/Contentstack.Core/Models/Query.cs +++ b/Contentstack.Core/Models/Query.cs @@ -1886,11 +1886,11 @@ private async Task Exec() if (this.ContentTypeInstance!=null && this.ContentTypeInstance?.StackInstance.LivePreviewConfig.Enable == true && this.ContentTypeInstance?.StackInstance.LivePreviewConfig.ContentTypeUID == this.ContentTypeInstance?.ContentTypeId && header.Key == "access_token" - && isLivePreview) + && !string.IsNullOrEmpty(this.ContentTypeInstance.StackInstance.LivePreviewConfig.LivePreview)) { continue; } - headerAll.Add(header.Key, (string)header.Value); + headerAll.Add(header.Key, (String)header.Value); } } diff --git a/Directory.Build.props b/Directory.Build.props index bec8fed..cff023c 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,5 +1,5 @@ - 2.22.1 + 2.22.2