GopalKrushnaMahapatra commited on
Commit
5c8c123
·
verified ·
1 Parent(s): fa55309

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -94,7 +94,8 @@ app = FastAPI(title="TrueWrite Scan (Python Backend)")
94
 
95
  app.add_middleware(
96
  CORSMiddleware,
97
- allow_origin_regex=r"https://true-write-scan.*\.vercel\.app",
 
98
  allow_credentials=True,
99
  allow_methods=["*"],
100
  allow_headers=["*"],
 
94
 
95
  app.add_middleware(
96
  CORSMiddleware,
97
+ # This regex allows ANY URL (HTTP or HTTPS) to connect
98
+ allow_origin_regex=r"https?://.*",
99
  allow_credentials=True,
100
  allow_methods=["*"],
101
  allow_headers=["*"],