Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/pin-swagger-dark-theme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'fets': patch
---

Pin the Swagger UI dark-theme CSS to an immutable jsDelivr GitHub commit

The dark stylesheet is loaded from `cdn.jsdelivr.net/gh/Itz-fork/Fastapi-Swagger-UI-Dark@868ea5da…` with SRI, so upstream default-branch changes cannot invalidate the integrity hash or swap the file silently.
2 changes: 1 addition & 1 deletion .changeset/swagger-ui-sri.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

Pin Swagger UI CDN assets and load them with Subresource Integrity (SRI)

Swagger UI previously pulled unversioned `unpkg.com/swagger-ui-dist` scripts/styles without integrity checks. Assets are now pinned to `swagger-ui-dist@5.11.0` (and the dark theme CSS) and loaded via `<link>`/`<script>` tags with `integrity` + `crossorigin`, so a compromised CDN cannot silently swap the payload.
Swagger UI previously pulled unversioned `unpkg.com/swagger-ui-dist` scripts/styles without integrity checks. Assets are now pinned to `swagger-ui-dist@5.11.0` and loaded via `<link>`/`<script>` tags with `integrity` + `crossorigin`, so a compromised CDN cannot silently swap the payload.
2 changes: 1 addition & 1 deletion packages/fets/src/swagger-ui.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>SwaggerUI</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/Itz-fork/Fastapi-Swagger-UI-Dark/assets/swagger_ui_dark.min.css"
href="https://cdn.jsdelivr.net/gh/Itz-fork/Fastapi-Swagger-UI-Dark@868ea5da89b4e7d9aa7fe57f601485d68f26695d/assets/swagger_ui_dark.min.css"
media="(prefers-color-scheme: dark)"
crossorigin="anonymous"
integrity="sha384-uFFUYDzMQNCAsNQHyjX9WExpaDBrtT+3F/7yo37l/lUEsOa7yAUqDFRlDEG2u8RY"
Expand Down
Loading