Skip to content

Commit

Permalink
adding properties to allow cross origin fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
fellyph committed Feb 12, 2024
1 parent a67b812 commit d556167
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/scenarios/personalization/personalization.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ document.addEventListener('DOMContentLoaded', () => {
const themeSwitcher = document.getElementById('dark-mode-switch');

function updateUserPreference() {
fetch(`${baseURL}/get-personalization`)
fetch(`${baseURL}/get-personalization`, {
method: 'GET',
credentials: 'include'
})
.then(response => {
if (!response.ok) {
throw new Error('Network response was not ok');
Expand Down

0 comments on commit d556167

Please sign in to comment.