File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -51,9 +51,11 @@ class AsyncServer(server.Server):
51
51
is greater than this value.
52
52
:param cookie: Name of the HTTP cookie that contains the client session
53
53
id. If set to ``None``, a cookie is not sent to the client.
54
- :param cors_allowed_origins: List of origins that are allowed to connect
55
- to this server. All origins are allowed by
56
- default.
54
+ :param cors_allowed_origins: Origin or list of origins that are allowed to
55
+ connect to this server. Only the same origin
56
+ is allowed by default. Set this argument to
57
+ ``'*'`` to allow all origins, or to ``[]`` to
58
+ disable CORS handling.
57
59
:param cors_credentials: Whether credentials (cookies, authentication) are
58
60
allowed in requests to this server.
59
61
:param engineio_logger: To enable Engine.IO logging set to ``True`` or pass
Original file line number Diff line number Diff line change @@ -78,9 +78,11 @@ class Server(object):
78
78
:param cookie: Name of the HTTP cookie that contains the client session
79
79
id. If set to ``None``, a cookie is not sent to the client.
80
80
The default is ``'io'``.
81
- :param cors_allowed_origins: List of origins that are allowed to connect
82
- to this server. All origins are allowed by
83
- default.
81
+ :param cors_allowed_origins: Origin or list of origins that are allowed to
82
+ connect to this server. Only the same origin
83
+ is allowed by default. Set this argument to
84
+ ``'*'`` to allow all origins, or to ``[]`` to
85
+ disable CORS handling.
84
86
:param cors_credentials: Whether credentials (cookies, authentication) are
85
87
allowed in requests to this server. The default is
86
88
``True``.
You can’t perform that action at this time.
0 commit comments