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,