Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b9feca6

Browse files
authored
fixed cors error
1 parent 2f79197 commit b9feca6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎python/flask_socket.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
import flask_socketio
55

66
app = Flask(__name__)
7-
socketio = SocketIO(app)
8-
7+
socketio = SocketIO(app,cors_allowed_origins="*")
98

109
@socketio.on('connect')
1110
def test_message():

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /