Skip to content

Commit

Permalink
fix: added websockets to requirements doc to resolve "Unsupported upg…
Browse files Browse the repository at this point in the history
…rade request."
  • Loading branch information
CS76 committed Mar 6, 2023
1 parent eb17cae commit 0e3a0f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
app = FastAPI()

origins = [
"http://localhost",
"http://localhost:8080",
"http://localhost:80",
"*"
]

app.add_middleware(
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ pydantic>=1.8.0,<2.0.0
uvicorn>=0.15.0,<0.16.0
psycopg2>=2.7,<2.8
fastapi-pagination==0.10.0
STOUT-pypi>=2.0.5
STOUT-pypi>=2.0.5
websockets==10.4

0 comments on commit 0e3a0f6

Please sign in to comment.