Skip to content

Commit d195fd8

Browse files
authored
Merge pull request #9 from factly/fix/black-dep
Fix/black dep
2 parents d060cf1 + c488531 commit d195fd8

File tree

4 files changed

+414
-866
lines changed

4 files changed

+414
-866
lines changed

app/core/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Settings(BaseSettings):
3333
# CORS PARAMS
3434
CORS_ORIGINS: list = ["*"]
3535
CORS_METHODS: list = ["*"]
36-
CORS_ALLWED_CREDENTIALS: bool = True
36+
CORS_HEADERS: list = ["*"]
3737

3838
# S3 (MINIO) PARAMS
3939
S3_ENDPOINT: str = "localhost:9000"

app/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
CORSMiddleware,
2323
allow_origins=settings.CORS_ORIGINS,
2424
allow_methods=settings.CORS_METHODS,
25-
allow_credentials=settings.CORS_ALLWED_CREDENTIALS,
26-
allow_headers=["*"],
25+
allow_headers=settings.CORS_HEADERS,
2726
)
2827

2928
app.mount("/static", StaticFiles(directory="static"), name="static")

0 commit comments

Comments
 (0)