fix: delete origins
This commit is contained in:
@@ -57,6 +57,8 @@ class Settings(BaseSettings):
|
||||
CSRF_COOKIE_PATH: str = '/'
|
||||
CSRF_COOKIE_DOMAIN: str | None = None
|
||||
|
||||
AUTH_COOKIE_SECURE: bool = False
|
||||
|
||||
DOCS_USERNAME: str = 'admin'
|
||||
DOCS_PASSWORD: str = 'admin'
|
||||
|
||||
@@ -81,9 +83,6 @@ class Settings(BaseSettings):
|
||||
RABBIT_CONNECT_TIMEOUT: int = 5
|
||||
RABBIT_EMAIL_CODE_QUEUE: str = 'email.verification_code'
|
||||
|
||||
CORS_ORIGINS: str = 'http://localhost:3000'
|
||||
CORS_ALLOW_CREDENTIALS: bool = True
|
||||
|
||||
RATE_LIMIT_REQUESTS: int = 60
|
||||
RATE_LIMIT_WINDOW: int = 60
|
||||
|
||||
@@ -245,10 +244,6 @@ class Settings(BaseSettings):
|
||||
return data
|
||||
|
||||
|
||||
def cors_origins_list(self) -> List[str]:
|
||||
return [o.strip() for o in self.CORS_ORIGINS.split(',') if o.strip()]
|
||||
|
||||
|
||||
@property
|
||||
def DATABASE_URL(self) -> str:
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user