DevelopedBy-Siva commited on
Commit
095c98b
·
1 Parent(s): b378103

cors change

Browse files
Files changed (2) hide show
  1. README.md +2 -0
  2. server_app.py +1 -2
README.md CHANGED
@@ -8,3 +8,5 @@ pinned: false
8
  ---
9
 
10
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
8
  ---
9
 
10
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
11
+
12
+ ---
server_app.py CHANGED
@@ -30,8 +30,7 @@ app = FastAPI(
30
  app.add_middleware(
31
  CORSMiddleware,
32
  allow_origins=[
33
- "http://localhost:3000",
34
- "https://document-qa-rag-system.vercel.app/",
35
  ],
36
  allow_credentials=True,
37
  allow_methods=["*"],
 
30
  app.add_middleware(
31
  CORSMiddleware,
32
  allow_origins=[
33
+ "https://document-qa-rag-system.vercel.app",
 
34
  ],
35
  allow_credentials=True,
36
  allow_methods=["*"],