feat: Add support for per-domain MFE config
Description
This MR improves the handling of multiple domains when using a separate themed MFE for each domain. It automatically sets up basic CSRF config for each tenant in this case.
It also fixes the caddyfile to send the correct host header.
Finally, it adds support for specifying which MFEs to disable in the tutor config file.
Supporting information
Testing instructions
Steps to test the changes:
- Set up a multi-domain instance using GROVE_ADDITIONAL_DOMAINS.
- Enable MFE proxying for some domains
- Specify the mfe domain for each lms domain
- The deployed instance should use the correct MFE domain, and the MFE domain should be able to properly call APIs without additional config.
Dependencies
NA
Screenshots
NA
Checklist
If any of the items below is not applicable, do not remove them, but put a check in it.
-
Git commit history is clean -
Git commits are following conventional-commit practices -
Unit tests are added/updated -
Documentation is added/updated
Additional context
Add any other context about the merge request here.
Edited by Kshitij Sobti