forked from Kelder/cammiechat
Allow all origins
This commit is contained in:
parent
5013020bdf
commit
0607536b91
1 changed files with 2 additions and 1 deletions
3
chat.py
3
chat.py
|
@ -17,7 +17,8 @@ mpc.timeout = 0.2
|
|||
|
||||
|
||||
app = Flask(__name__)
|
||||
socketio = SocketIO(app)
|
||||
# This is fine
|
||||
socketio = SocketIO(app, cors_allowed_origins='*')
|
||||
messages = []
|
||||
last_sent = defaultdict(lambda: datetime(1970,1,1))
|
||||
|
||||
|
|
Loading…
Reference in a new issue