You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mb...@apache.org on 2021/03/27 09:45:29 UTC

[ofbiz-plugins] 05/05: Improved: Fixes sonarcloud error by using the resource integrity feature for embedding external redoc javascript file (OFBIZ-12197)

This is an automated email from the ASF dual-hosted git repository.

mbrohl pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git

commit 66055a731aa15706044e4612ea8b7f36c4dbe60c
Author: Michael Brohl <mi...@ecomify.de>
AuthorDate: Wed Mar 24 23:16:34 2021 +0100

    Improved: Fixes sonarcloud error by using the resource integrity feature
    for embedding external redoc javascript file (OFBIZ-12197)
---
 rest-api/webapp/docs/redoc.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rest-api/webapp/docs/redoc.html b/rest-api/webapp/docs/redoc.html
index f6a1f49..5825848 100644
--- a/rest-api/webapp/docs/redoc.html
+++ b/rest-api/webapp/docs/redoc.html
@@ -36,7 +36,7 @@ under the License.
   </head>
   <body>
   <redoc></redoc>
-  <script src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"> </script>
+  <script src="https://cdn.jsdelivr.net/npm/redoc@2.0.0-rc.50/bundles/redoc.standalone.js" integrity="sha384-YWcR83P+iCIwWinEgobyIHtCpa2GHXZY4EGN+8CK2dDrcay1wIz3l4Txk2AEc7Qc"> </script>
   <script>
       if (!window.location.origin) {
         window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port : '');