Hi Eric,
thank you for your answer ! Unfortunatly it did not work.
In de Mendix Console the public application root url is allready filled with the URL from the app.
When I add the ApplicationRootUrl with the url as value and start the application it gets sick (see: Same key error below).
I believe you need to set the Mendix custom runtime setting called ApplicationRootUrl. This tells the Mendix app where it lives and allows it to generate the Swagger docs with the correct URL.
Given that Mx still does not seem to have a fix to this I found my own very ugly fix. Running the Mendix Service on Windows 2022 I added an outbound rule to IIS that rewrites any occurrence of https://localhost:8080 by my actual domainname:
I hope this helps for anyone after me finding this issue. I did set the ApplicationRootUrl (you may do this by leaving the public application URL blank), and tried to set that value which seems to end up in the ApplicationRootUrl, but neither worked.