Cloud front ssl with streamlit

i made a stream lit website and it runs fine on my local host even on aws but when i connect through CloudFront it Stucks on loading skeleton and says request timed out.

idk what is the issue here but i wanna get it fixed ASAP