Skip to content

Commit 63336a1

Browse files
committed
feat: add CORS credentials to settings
1 parent b3c0eba commit 63336a1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

stac_fastapi/pgstac/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ async def lifespan(app: FastAPI):
186186
CORSMiddleware,
187187
allow_origins=settings.cors_origins,
188188
allow_methods=settings.cors_methods,
189+
allow_credentials=settings.cors_credentials,
189190
),
190191
],
191192
health_check=health_check,

stac_fastapi/pgstac/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ class Settings(ApiSettings):
170170

171171
cors_origins: str = "*"
172172
cors_methods: str = "GET,POST,OPTIONS"
173+
cors_credentials: bool = False
173174

174175
testing: bool = False
175176

0 commit comments

Comments
 (0)