|
@@ -14,7 +14,7 @@ class Settings(BaseSettings):
|
|
|
# BACKEND_CORS_ORIGINS is a JSON-formatted list of origins
|
|
|
# e.g: '["http://localhost", "http://localhost:4200", "http://localhost:3000", \
|
|
|
# "http://localhost:8080", "http://local.dockertoolbox.tiangolo.com"]'
|
|
|
- BACKEND_CORS_ORIGINS: List[AnyHttpUrl] = ["https://cloud.choozmo:8080", "http://cloud.choozmo.com:8080", "https://cloud.choozmo.com", "http://cloud.choozmo.com","http://172.105.219.42", "http://local.ai-anchor.com:5173", "http://local.ai-anchor.com:8080", "http://localhost", "http://localhost:4200", "http://localhost:3000", "http://localhost:5173", "http://localhost:8080", "https://localhost", "https://localhost:4200", "https://localhost:3000", "https://localhost:8080", "http://dev.ai-anchor.com:3000", "http://dev.ai-anchor.com:5173", "http://dev.ai-anchor.com:8080"]
|
|
|
+ BACKEND_CORS_ORIGINS: List[AnyHttpUrl] = ["http://cmm.ai:3001/", "https://cloud.choozmo:8080", "http://cloud.choozmo.com:8080", "https://cloud.choozmo.com", "http://cloud.choozmo.com","http://172.105.219.42", "http://local.ai-anchor.com:5173", "http://local.ai-anchor.com:8080", "http://localhost", "http://localhost:4200", "http://localhost:3000", "http://localhost:5173", "http://localhost:8080", "https://localhost", "https://localhost:4200", "https://localhost:3000", "https://localhost:8080", "http://dev.ai-anchor.com:3000", "http://dev.ai-anchor.com:5173", "http://dev.ai-anchor.com:8080"]
|
|
|
|
|
|
@validator("BACKEND_CORS_ORIGINS", pre=True)
|
|
|
def assemble_cors_origins(cls, v: Union[str, List[str]]) -> Union[List[str], str]:
|