v0.1.27
Fix: Throughput API v1 available - Details posted to Irving. POWERBI_KEY was missing from the .ENV file, so was not live. Add: Editor now supports editing a mix's resolved formula directly, with % and kg dual entry on ingredient rows Fix: Mix Editor should bring through correct ingredients. New resolved formula (same logic we use in Mix Calculator). Fix: Security headers on all API responses (hardening) Add: New mix button available on the Mix Editor. Add: New ingredient button available on the Ingredient Editor
This commit is contained in:
@@ -30,6 +30,7 @@ from app.api.ordering_admin import router as ordering_admin_router
|
||||
from app.api.powerbi import router as powerbi_router
|
||||
from app.api.product_costing import router as product_costing_router
|
||||
from app.api.products import router as products_router
|
||||
from app.api.public_v1 import router as public_v1_router
|
||||
from app.api.raw_materials import router as raw_materials_router
|
||||
from app.api.scenarios import router as scenarios_router
|
||||
from app.api.throughput import router as throughput_router
|
||||
@@ -209,6 +210,7 @@ app.include_router(throughput_router)
|
||||
app.include_router(ordering_router)
|
||||
app.include_router(ordering_admin_router)
|
||||
app.include_router(powerbi_router)
|
||||
app.include_router(public_v1_router)
|
||||
|
||||
|
||||
@app.middleware("http")
|
||||
@@ -270,6 +272,11 @@ async def enforce_request_limits_and_csrf(request: Request, call_next):
|
||||
"script-src 'self'; "
|
||||
"font-src 'self' data:; "
|
||||
"connect-src 'self'; "
|
||||
# PDF previews/printing load a same-origin blob: URL into an iframe.
|
||||
# Without an explicit frame-src/child-src these fall back to default-src
|
||||
# ('self'), which blocks blob: and breaks the in-app print dialog.
|
||||
"frame-src 'self' blob:; "
|
||||
"child-src 'self' blob:; "
|
||||
"frame-ancestors 'self'; "
|
||||
"base-uri 'self'; "
|
||||
"form-action 'self'"
|
||||
@@ -315,6 +322,7 @@ def root():
|
||||
"scenarios": "/api/scenarios",
|
||||
"operations_throughput": "/api/throughput",
|
||||
"client_access": "/api/client-access",
|
||||
"powerbi_throughput": "/api/v1/throughput",
|
||||
"docs": "/docs",
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user