mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 20:03:12 +03:00
Fixed wrong credentials usage in AdminX previews (#19281)
refs PROD-227
This commit is contained in:
parent
61a91f7dbd
commit
8ab693d74d
@ -36,10 +36,10 @@ const AnnouncementBarPreview: React.FC<AnnouncementBarSettings> = ({announcement
|
|||||||
announcementContent,
|
announcementContent,
|
||||||
visibilityMemo
|
visibilityMemo
|
||||||
),
|
),
|
||||||
Accept: 'text/plain',
|
Accept: 'text/plain'
|
||||||
mode: 'cors',
|
},
|
||||||
credentials: 'include'
|
mode: 'cors',
|
||||||
}
|
credentials: 'include'
|
||||||
})
|
})
|
||||||
.then(response => response.text())
|
.then(response => response.text())
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
|
@ -69,10 +69,10 @@ const ThemePreview: React.FC<ThemePreviewProps> = ({settings,url}) => {
|
|||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'text/html;charset=utf-8',
|
'Content-Type': 'text/html;charset=utf-8',
|
||||||
'x-ghost-preview': previewData,
|
'x-ghost-preview': previewData,
|
||||||
Accept: 'text/plain',
|
Accept: 'text/plain'
|
||||||
mode: 'cors',
|
},
|
||||||
credentials: 'include'
|
mode: 'cors',
|
||||||
}
|
credentials: 'include'
|
||||||
})
|
})
|
||||||
.then(response => response.text())
|
.then(response => response.text())
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user