From 967771b3f7f980bc0a3d4a585e1a7dbe4db4a3f9 Mon Sep 17 00:00:00 2001 From: Krystian Szymukowicz Date: Tue, 3 Nov 2026 18:14:24 +0100 Subject: [PATCH] [TASK] Disable online validator of Swagger UI in backend module --- Documentation/Miscellaneous/Changelog/Index.rst | 1 + Resources/Public/ESM/swagger-init.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Documentation/Miscellaneous/Changelog/Index.rst b/Documentation/Miscellaneous/Changelog/Index.rst index 9621b668..45668f59 100644 --- a/Documentation/Miscellaneous/Changelog/Index.rst +++ b/Documentation/Miscellaneous/Changelog/Index.rst @@ -40,6 +40,7 @@ Changelog - Add :ref:`query modifiers ` and :ref:`ordered UIDs filter ` - return collections in externally resolved order. [`commit `__] - Allow API sites in backend Content Security Policy (OpenAPI view in backend module for multiple sites). [`commit `__] - Add TYPO3 v14 module icon, clean up backend module. [`commit `__] +- Swagger UI in the backend module does not use the online validator of swagger.io. - Refactor language support for TYPO3 12/13/14. [`commit `__] - Handle upload ``conflictMode`` across TYPO3 versions. [`commit `__] - Resolve current frontend user from Context instead of TSFE. [`commit `__] diff --git a/Resources/Public/ESM/swagger-init.js b/Resources/Public/ESM/swagger-init.js index 349e5d5f..2ef20aff 100644 --- a/Resources/Public/ESM/swagger-init.js +++ b/Resources/Public/ESM/swagger-init.js @@ -5,6 +5,8 @@ let checkExist = setInterval(function() { window.ui = SwaggerUIBundle({ url: element.dataset.specUrl, dom_id: '#t3api-swagger-ui', + // Do not send the specification URL to the online validator of swagger.io (default of Swagger UI) + validatorUrl: null, deepLinking: true, presets: [ SwaggerUIBundle.presets.apis,