Skip to content

Commit fd4e7f9

Browse files
committed
Fix /admin-rest-api loading after Apache CSP change that blocked loading from external sources
1 parent 1f6dde2 commit fd4e7f9

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/pages/RestApi/RestApi.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class RestApi extends React.Component {
102102
const redocLink = document.createElement("script");
103103
redocLink.setAttribute(
104104
"src",
105-
"https://rebilly.github.io/ReDoc/releases/latest/redoc.min.js"
105+
"/js/redoc.min.js"
106106
);
107107
const script = document.querySelector(".container script");
108108
wrapper.insertBefore(redoc, script);

static/js/redoc.min.js

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)