Remember scroll on rerun

I’m very new to streamlit, but there’s something very annoying. Whenever I change the script and save (using auto rerun) the scroll would jump to the top and I have to scroll back down. This destroys my keyboard-only interaction. Is there an option for streamlit to remember the scroll position. Or at least to scroll at the bottom?

OK, the problems seems to be around CORS. I’m using streamlit on a cloud machine and forwarding the port to localhost using ssh. Access happens at localhost:8501. Setting --browser.serverAddress=localhost doesn’t help. What helped was to disable CORS with --server.enableCors=false. It’s not optimal, but I haven’t found a better solution.