Yep, I found your answer in this previous post, and tried to set
PREVIEW_LMS_BASE: mooc.mydomain.com/
<-- with a slash
and
LMS_BASE: mooc.mydomain.com
<-- without a slash
but didn’t work. I’ll have to dig further in the code to figure out the reason of this behaviour…