Update app.py
Browse files
app.py
CHANGED
|
@@ -94,11 +94,12 @@ app = FastAPI(title="TrueWrite Scan (Python Backend)")
|
|
| 94 |
|
| 95 |
app.add_middleware(
|
| 96 |
CORSMiddleware,
|
| 97 |
-
allow_origin_regex=r"https://true-write-scan
|
| 98 |
allow_credentials=True,
|
| 99 |
allow_methods=["*"],
|
| 100 |
allow_headers=["*"],
|
| 101 |
)
|
|
|
|
| 102 |
|
| 103 |
# ------------------ MODELS ------------------
|
| 104 |
class SignupRequest(BaseModel):
|
|
|
|
| 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=["*"],
|
| 101 |
)
|
| 102 |
+
)
|
| 103 |
|
| 104 |
# ------------------ MODELS ------------------
|
| 105 |
class SignupRequest(BaseModel):
|