cors - open api - remove check
This commit is contained in:
parent
0056140c86
commit
e4db6ea359
|
|
@ -191,10 +191,6 @@ class Settings(BaseSettings):
|
||||||
if self.ENVIRONMENT == Environment.PRODUCTION:
|
if self.ENVIRONMENT == Environment.PRODUCTION:
|
||||||
if self.DEBUG:
|
if self.DEBUG:
|
||||||
raise ValueError("DEBUG must be False in production")
|
raise ValueError("DEBUG must be False in production")
|
||||||
if self.CORS_ORIGINS == ["*"]:
|
|
||||||
raise ValueError(
|
|
||||||
"CORS_ORIGINS cannot be ['*'] in production"
|
|
||||||
)
|
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue