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,
|
||||
visibilityMemo
|
||||
),
|
||||
Accept: 'text/plain',
|
||||
mode: 'cors',
|
||||
credentials: 'include'
|
||||
}
|
||||
Accept: 'text/plain'
|
||||
},
|
||||
mode: 'cors',
|
||||
credentials: 'include'
|
||||
})
|
||||
.then(response => response.text())
|
||||
.then((data) => {
|
||||
|
@ -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',
|
||||
mode: 'cors',
|
||||
credentials: 'include'
|
||||
}
|
||||
Accept: 'text/plain'
|
||||
},
|
||||
mode: 'cors',
|
||||
credentials: 'include'
|
||||
})
|
||||
.then(response => response.text())
|
||||
.then((data) => {
|
||||
|
Loading…
Reference in New Issue
Block a user