Hydralit fails on AWS ECS

We have Streamlit deployed to AWS ECS.

Introducing tabs with Hydralit and staying at Streamlit 1.4.0 works locally.

Deploying with Hydralit added yields the following error:
Your app is having trouble loading the hydralit_components.NavBar.nav_bar component.

We’re stuck. Do you have a suggestion what to try?

This seems to be a general issue with Streamlit components and deploying. See App is having trouble loading the extra_streamlit_components · Issue #6 · Mohamed-512/Extra-Streamlit-Components (github.com)

The solution seems to change the x-frame-options. It seems if you can control the header Streamlit sends, this could be solved. However, I didn’t find a way to do that.