From 7dbdb0cd4e29d9bdd8ac4b6751e482f1a6d29c95 Mon Sep 17 00:00:00 2001 From: Victor Mylle Date: Mon, 20 Feb 2023 18:31:56 +0100 Subject: [PATCH] Reverted cors and added ffmpeg --- backend/Dockerfile | 1 + backend/src/app.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index de98b90..dfb00c4 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -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"] \ No newline at end of file diff --git a/backend/src/app.py b/backend/src/app.py index 62e3ef8..1970940 100644 --- a/backend/src/app.py +++ b/backend/src/app.py @@ -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=["*"],