Update app.py
Browse files
app.py
CHANGED
|
@@ -94,7 +94,8 @@ app = FastAPI(title="TrueWrite Scan (Python Backend)")
|
|
| 94 |
|
| 95 |
app.add_middleware(
|
| 96 |
CORSMiddleware,
|
| 97 |
-
|
|
|
|
| 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=["*"],
|