Cors fix
This commit is contained in:
@@ -44,7 +44,7 @@ def auth_config():
|
|||||||
# Add middleware
|
# Add middleware
|
||||||
app.add_middleware(
|
app.add_middleware(
|
||||||
CORSMiddleware,
|
CORSMiddleware,
|
||||||
allow_origins=["*"],
|
allow_origins=["https://signlanguagetool.secureservers.be", "http://localhost:3000"],
|
||||||
allow_credentials=True,
|
allow_credentials=True,
|
||||||
allow_methods=["*"],
|
allow_methods=["*"],
|
||||||
allow_headers=["*"],
|
allow_headers=["*"],
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ COPY . .
|
|||||||
|
|
||||||
ENV REACT_APP_API_URL="https://backend.signlanguagetool.secureservers.be"
|
ENV REACT_APP_API_URL="https://backend.signlanguagetool.secureservers.be"
|
||||||
|
|
||||||
|
|
||||||
# Build for production.
|
# Build for production.
|
||||||
RUN npm run build --production
|
RUN npm run build --production
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user