Skip to content
This repository was archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
fix cors issue (#78)
Browse files Browse the repository at this point in the history
* fix cors

* pin python-engineio==3.8.2

* bump version
  • Loading branch information
oeway authored Aug 2, 2019
1 parent 281c41d commit 3004f2d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion imjoy/VERSION
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "0.8.19",
"version": "0.8.21",
"api_version": "0.1.2"
}
2 changes: 1 addition & 1 deletion imjoy/connection/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
def create_connection_manager(engine):
"""Create a socketio connection and return the connection instance."""
# ALLOWED_ORIGINS = [opt.base_url, 'http://imjoy.io', 'https://imjoy.io']
sio = socketio.AsyncServer()
sio = socketio.AsyncServer(cors_allowed_origins="*")
app = create_app(engine)
sio.attach(app)
return ConnectionManager(engine, app, sio)
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ aiohttp==3.5.4
aiohttp_cors==0.7.0
gputil==1.4.0
psutil==5.6.2
python-engineio==3.8.2
python-socketio[client]==4.1.0
pyyaml==5.1
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
)

REQUIREMENTS = [
"python-engineio==3.8.2",
"python-socketio[client]==4.1.0",
"numpy",
'janus;python_version>"3.3"',
Expand Down

0 comments on commit 3004f2d

Please sign in to comment.