overhangio / tutor-mfe

This plugin makes it possible to easily add micro frontend (MFE) applications on top of an Open edX platform that runs with Tutor.
GNU Affero General Public License v3.0
22 stars 95 forks source link

MFEs fail when MFE_HOST is not a subdomain of LMS_HOST #143

Closed CodeWithEmad closed 1 year ago

CodeWithEmad commented 1 year ago

I'm not sure this is the right place to ask this question, but since @arbrandes is the maintainer of this repo, I go for it. (maybe it's even fixed in Palm)

How to reproduce the bug:

you have LMS_HOST=lms.codewithemad.com in your settings. everything works and MFEs will be available at https://apps.lms.codewithemad.com/MFE_APP but when you set MFE_HOST=apps.codewithemad.com, MFEs are no longer functional (when you're logged in) and this error will show up in the console logs:

Screenshot from 2023-08-16 17-57-58

I'm not an expert on openedx, but I dug a little more and I believe it has something to do with the cookies set in lms side and Frontend-Platform. Am I missing something?

os Ubuntu 22.04 tutor-mfe v15.0.6 tutor v15.3.6

CodeWithEmad commented 1 year ago

Looks like this is a known issue and there's an open issue for it here. I'll close this one.