St.camera_input cannot be used after it is deployed on the server

Hello, when I used linux server to deploy a component containing st.camera_input, I used chrome to open the page without any request for permission to open the camera and could not take photos. But if I put it in the local server, it can run normally. Can you help me to see what is going on?

code:
image

page:

This problem has been solved, thanks.