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