Skip to content

Commit 85349a9

Browse files
Merge pull request #117 from contentstack/fix/DX-3264
fix: token issue
2 parents 7d7e2f2 + 37e206b commit 85349a9

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
### Version: 2.22.2
2+
#### Date: July-14-2025
3+
4+
##### Fix:
5+
- Fixed token issue for Live Preview
6+
17
### Version: 2.22.1
28
#### Date: June-13-2025
39

Contentstack.Core/Models/Query.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1886,11 +1886,11 @@ private async Task<JObject> Exec()
18861886
if (this.ContentTypeInstance!=null && this.ContentTypeInstance?.StackInstance.LivePreviewConfig.Enable == true
18871887
&& this.ContentTypeInstance?.StackInstance.LivePreviewConfig.ContentTypeUID == this.ContentTypeInstance?.ContentTypeId
18881888
&& header.Key == "access_token"
1889-
&& isLivePreview)
1889+
&& !string.IsNullOrEmpty(this.ContentTypeInstance.StackInstance.LivePreviewConfig.LivePreview))
18901890
{
18911891
continue;
18921892
}
1893-
headerAll.Add(header.Key, (string)header.Value);
1893+
headerAll.Add(header.Key, (String)header.Value);
18941894
}
18951895
}
18961896

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>2.22.1</Version>
3+
<Version>2.22.2</Version>
44
</PropertyGroup>
55
</Project>

0 commit comments

Comments
 (0)