Skip to content

Turning on server.enableCORS via set_option() can crash chrome #163

@treuille

Description

@treuille

Summary

Type here a clear and concise description of the bug. Aim for 2-3 sentences.

Steps to reproduce

  1. Run this code:
import streamlit as st
st.set_option('server.enableCORS', False)
st.write('Hello world.')
  1. Connect to the sever "unsecurely" via http://localhost:8501. Note that works!

  2. Now connect to the sever securely via https://localhost:8501 and wait a loooong time.

Behavior

Actual behavior

After a long wait, one of two things happen to me:

  1. Chrome crashes! 😬
  2. It says that the request timed out:

image

Expected behavior

I would expect the https request to work.

Debug info

$ streamlit version && python --version && pyenv --version && sw_vers && "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --version

Streamlit, version 0.45.0
Python 3.6.5
pyenv 1.2.3
ProductName:	Mac OS X
ProductVersion:	10.14.6
BuildVersion:	18G95
Google Chrome 76.0.3809.132 

Metadata

Metadata

Assignees

Labels

type:bugSomething isn't working as expected

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions