Fixed wrong credentials usage in AdminX previews (#19281)

refs PROD-227
This commit is contained in:
Jono M 2023-12-11 14:01:53 +00:00 committed by GitHub
parent 61a91f7dbd
commit 8ab693d74d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -36,10 +36,10 @@ const AnnouncementBarPreview: React.FC<AnnouncementBarSettings> = ({announcement
announcementContent,
visibilityMemo
),
Accept: 'text/plain',
Accept: 'text/plain'
},
mode: 'cors',
credentials: 'include'
}
})
.then(response => response.text())
.then((data) => {

View File

@ -69,10 +69,10 @@ const ThemePreview: React.FC<ThemePreviewProps> = ({settings,url}) => {
headers: {
'Content-Type': 'text/html;charset=utf-8',
'x-ghost-preview': previewData,
Accept: 'text/plain',
Accept: 'text/plain'
},
mode: 'cors',
credentials: 'include'
}
})
.then(response => response.text())
.then((data) => {