diff --git a/apps/admin-x-settings/src/components/settings/site/announcementBar/AnnouncementBarPreview.tsx b/apps/admin-x-settings/src/components/settings/site/announcementBar/AnnouncementBarPreview.tsx index 209504af9b..6bd8ae2737 100644 --- a/apps/admin-x-settings/src/components/settings/site/announcementBar/AnnouncementBarPreview.tsx +++ b/apps/admin-x-settings/src/components/settings/site/announcementBar/AnnouncementBarPreview.tsx @@ -36,10 +36,10 @@ const AnnouncementBarPreview: React.FC = ({announcement announcementContent, visibilityMemo ), - Accept: 'text/plain', - mode: 'cors', - credentials: 'include' - } + Accept: 'text/plain' + }, + mode: 'cors', + credentials: 'include' }) .then(response => response.text()) .then((data) => { diff --git a/apps/admin-x-settings/src/components/settings/site/designAndBranding/ThemePreview.tsx b/apps/admin-x-settings/src/components/settings/site/designAndBranding/ThemePreview.tsx index 4fe2b49b0d..ce155836b4 100644 --- a/apps/admin-x-settings/src/components/settings/site/designAndBranding/ThemePreview.tsx +++ b/apps/admin-x-settings/src/components/settings/site/designAndBranding/ThemePreview.tsx @@ -69,10 +69,10 @@ const ThemePreview: React.FC = ({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) => {