Skip to content

Commit 5e7e002

Browse files
committed
fix: update swagger CORs
1 parent 808d400 commit 5e7e002

1 file changed

Lines changed: 6 additions & 11 deletions

File tree

docs/static/swagger-initializer.js

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,13 @@ window.onload = function () {
33

44
// the following lines will be replaced by docker/configurator, when it runs in a docker-container
55
window.ui = SwaggerUIBundle({
6-
url: "http://localhost:5050/api/v1/openapi.yaml",
7-
// url: "https://api.plainrandom.com/api/v1/openapi.yaml",
8-
dom_id: '#swagger-ui',
6+
// url: "http://localhost:5050/api/v1/openapi.yaml",
7+
url: "https://api.plainrandom.com/api/v1/openapi.yaml",
8+
dom_id: "#swagger-ui",
99
deepLinking: true,
10-
presets: [
11-
SwaggerUIBundle.presets.apis,
12-
SwaggerUIStandalonePreset
13-
],
14-
plugins: [
15-
SwaggerUIBundle.plugins.DownloadUrl
16-
],
17-
layout: "StandaloneLayout"
10+
presets: [SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset],
11+
plugins: [SwaggerUIBundle.plugins.DownloadUrl],
12+
layout: "StandaloneLayout",
1813
});
1914

2015
//</editor-fold>

0 commit comments

Comments
 (0)