Skip to content

Commit

Permalink
Fix /admin-rest-api loading after Apache CSP change that blocked load…
Browse files Browse the repository at this point in the history
…ing from external sources
  • Loading branch information
lhotari committed Feb 14, 2025
1 parent 1f6dde2 commit fd4e7f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/RestApi/RestApi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class RestApi extends React.Component {
const redocLink = document.createElement("script");
redocLink.setAttribute(
"src",
"https://rebilly.github.io/ReDoc/releases/latest/redoc.min.js"
"/js/redoc.min.js"
);
const script = document.querySelector(".container script");
wrapper.insertBefore(redoc, script);
Expand Down
8 changes: 8 additions & 0 deletions static/js/redoc.min.js

Large diffs are not rendered by default.

0 comments on commit fd4e7f9

Please sign in to comment.