Skip to content

v0.46.1

Choose a tag to compare

@mihsergeev mihsergeev released this 21 Jul 18:12
· 14 commits to main since this release

Fixed

  • The API docs page at /api/docs opened blank. FastAPI's stock Swagger page
    pulls its JS/CSS from an external CDN and boots them with an inline script;
    the panel's strict Content-Security-Policy (script-src 'self', no
    'unsafe-inline') blocked both, so only an empty page loaded. Rather than
    weakening the policy, the panel now serves Swagger UI from its own origin: the
    assets are copied from the swagger-ui-dist package at build time and the
    initialization lives in a separate file instead of inline. The CSP is unchanged,
    and the docs now also work on networks where the CDN is unreachable — which
    matters for a tool that often runs in exactly those networks.