Reverted cors and added ffmpeg

This commit is contained in:
2023-02-20 18:31:56 +01:00
parent 2a5e9ad29d
commit 7dbdb0cd4e
2 changed files with 2 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
RUN apt update && apt install -y ffmpeg
COPY . .
CMD ["python", "main.py"]

View File

@@ -44,7 +44,7 @@ def auth_config():
# Add middleware
app.add_middleware(
CORSMiddleware,
allow_origins=["https://signlanguagetool.secureservers.be", "http://localhost:3000"],
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],