Skip to content

Commit

Permalink
fix: CORS policy on server
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherfrige authored Mar 17, 2024
1 parent 3c85433 commit b87355f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions backend/src/presentation/api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@

app = FastAPI()

origins = [
SETTINGS.frontend_url
]
app.add_middleware(
CORSMiddleware,
allow_origins=origins,
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
Expand Down

0 comments on commit b87355f

Please sign in to comment.