Skip to content

Commit 39f388e

Browse files
authored
Permit forms in docs UI CSP (#1036)
1 parent 2a14580 commit 39f388e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ func (a *api) registerDocsRoute() {
723723
"connect-src 'self'",
724724
"form-action 'none'",
725725
"frame-ancestors 'none'",
726-
"sandbox allow-same-origin allow-scripts allow-popups allow-popups-to-escape-sandbox",
726+
"sandbox allow-same-origin allow-scripts allow-popups allow-popups-to-escape-sandbox allow-forms",
727727
"script-src https://unpkg.com/swagger-ui-dist@5.31.1/swagger-ui-bundle.js 'sha256-gRya58TMnKTH/Tne/zBInjBwFUxL66aMDYvPuAX0lNY='",
728728
"style-src https://unpkg.com/swagger-ui-dist@5.31.1/swagger-ui.css",
729729
}

0 commit comments

Comments
 (0)