AIenthusSP commited on
Commit
1bb7cb2
·
1 Parent(s): 8f19b7c

fix: add HuggingFace Spaces domains to CORS origins

Browse files

Fixes 403 error when ingesting files on deployed app

Files changed (1) hide show
  1. config/settings.py +7 -1
config/settings.py CHANGED
@@ -52,7 +52,13 @@ class Settings(BaseSettings):
52
  api_host: str = Field(default="0.0.0.0", alias="API_HOST")
53
  api_port: int = Field(default=8000, alias="API_PORT")
54
  cors_origins: list = Field(
55
- default=["http://localhost:3000", "http://localhost:8501"],
 
 
 
 
 
 
56
  alias="CORS_ORIGINS"
57
  )
58
 
 
52
  api_host: str = Field(default="0.0.0.0", alias="API_HOST")
53
  api_port: int = Field(default=8000, alias="API_PORT")
54
  cors_origins: list = Field(
55
+ default=[
56
+ "http://localhost:3000",
57
+ "http://localhost:8501",
58
+ "http://localhost:7860",
59
+ "https://alenthussp-documind-ai.hf.space",
60
+ "https://huggingface.co",
61
+ ],
62
  alias="CORS_ORIGINS"
63
  )
64