Skip to content

Commit

Permalink
fix: include credentials when cookie across subdomains
Browse files Browse the repository at this point in the history
 This URL of fetching guest_token is always LMS_ROOT_URL, however
 in case multisite is being used the guest could be in a different
 url. This change ensure that cookie is being sent if the other
 site is a subdomain or shares parent domain with LMS_URL_ROOT

 This might be realted to openedx/tutor-contrib-aspects/issues/925
  • Loading branch information
ghassanmas committed Nov 13, 2024
1 parent a1f6149 commit 8e7de53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions platform_plugin_aspects/static/js/embed_dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ async function fetchGuestToken() {
headers: {
"X-CSRFToken": getCookie("csrftoken"),
},
credentials: 'include',
body: body,
});

Expand Down

0 comments on commit 8e7de53

Please sign in to comment.