Update app.py
Browse files
app.py
CHANGED
|
@@ -94,13 +94,7 @@ app = FastAPI(title="TrueWrite Scan (Python Backend)")
|
|
| 94 |
|
| 95 |
app.add_middleware(
|
| 96 |
CORSMiddleware,
|
| 97 |
-
|
| 98 |
-
# 1. Your Vercel URL (NO SLASH at the end)
|
| 99 |
-
"https://true-write-scan-git-main-gopal-krushna-mahapatras-projects.vercel.app",
|
| 100 |
-
|
| 101 |
-
# 2. Localhost (For testing on your computer)
|
| 102 |
-
"http://localhost:3000",
|
| 103 |
-
],
|
| 104 |
allow_credentials=True,
|
| 105 |
allow_methods=["*"],
|
| 106 |
allow_headers=["*"],
|
|
|
|
| 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=["*"],
|