fix(ui): optimizar UX y relacion de aspecto para tablets Samsung Galaxy Tab (acordeon polizas, cockpit 0-scroll y contraste)
This commit is contained in:
@@ -33,6 +33,9 @@ class Settings(BaseSettings):
|
||||
"http://127.0.0.1:5173",
|
||||
"http://localhost:8000",
|
||||
"http://127.0.0.1:8000",
|
||||
"https://localhost",
|
||||
"http://localhost",
|
||||
"capacitor://localhost",
|
||||
]
|
||||
|
||||
# Base de Datos SQL Server (videoman)
|
||||
|
||||
+2
-1
@@ -25,10 +25,11 @@ app = FastAPI(
|
||||
# Middleware de Compresión GZip (optimiza transferencia a tablets por Wi-Fi)
|
||||
app.add_middleware(GZipMiddleware, minimum_size=1000)
|
||||
|
||||
# Middleware de CORS
|
||||
# Middleware de CORS con soporte para Capacitor (Android/iOS), LAN y Web
|
||||
app.add_middleware(
|
||||
CORSMiddleware,
|
||||
allow_origins=settings.ALLOWED_ORIGINS,
|
||||
allow_origin_regex=r"^(https?|capacitor)://(localhost|127\.0\.0\.1|192\.168\.\d+\.\d+|172\.\d+\.\d+\.\d+|10\.\d+\.\d+\.\d+)(:\d+)?$",
|
||||
allow_credentials=True,
|
||||
allow_methods=["*"],
|
||||
allow_headers=["*"],
|
||||
|
||||
Reference in New Issue
Block a user