Skip to content

Commit c3f0681

Browse files
authored
Site: Navigate the site to swagger redirection (apache#950)
1 parent 20817e1 commit c3f0681

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

site/hugo.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,3 @@ privacy:
252252
youtube:
253253
privacyEnhanced: true
254254

255-
server:
256-
headers:
257-
for: /**
258-
values:
259-
Content-Security-Policy: >2
260-
script-src 'self' https://cdn.jsdelivr.net 'unsafe-inline' 'unsafe-eval' https://analytics.apache.org/ https://cdn.jsdelivr.net
261-

site/layouts/shortcodes/redoc-polaris.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,5 @@
115115
<!--
116116
Link to Redoc JavaScript on CDN for rendering standalone element
117117
-->
118-
<script src="https://cdn.jsdelivr.net/npm/redoc@latest/bundles/redoc.standalone.js"></script>
118+
119+
<meta http-equiv="refresh" content="0; url=http://editor.swagger.io/?url={{ $url }}" />

0 commit comments

Comments
 (0)