We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c630bf6 commit 99ba657Copy full SHA for 99ba657
stac_fastapi/pgstac/config.py
@@ -201,9 +201,8 @@ class Settings(ApiSettings):
201
@model_validator(mode="after")
202
def check_origins(self) -> Self:
203
if self.cors_origin_regex and "*" in self.cors_origins:
204
- warnings.warn(
205
- "Both `cors_origin_regex` and `*` found in `cors_origins`! `cors_origin_regex` will be ignored.",
206
- UserWarning,
207
- stacklevel=1,
+ raise ValueError(
+ "Conflicting options found in API settings: `cors_origin_regex` and `*` in `cors_origins`"
208
)
+
209
return self
0 commit comments