chore(controller): move grants schema route to internal (#6753)
This commit is contained in:
1 parent
9df1fad7d0
commit
b495fe653b
2 files changed
+13
-9
No files matched your search
@@ -69,7 +69,10 @@ type HandlerProperties struct {
|
||||
CancelCtx context.Context
|
||||
}
|
||||
|
||||
const uiPath = "/"
|
||||
const (
|
||||
uiPath = "/"
|
||||
cspNonceHeader = "X-Boundary-Csp-Nonce"
|
||||
)
|
||||
|
||||
// createMuxWithEndpoints performs all response logic for boundary, using isUiRequest
|
||||
// for unified logic between responses and headers.
|
||||
@@ -810,7 +813,7 @@ func wrapHandlerWithCsp(h http.Handler, props HandlerProperties, isUiRequest fun
|
||||
|
||||
w.Header().Set(cspKey, csp)
|
||||
// Creating a custom key so we can pull it when serving UI page
|
||||
w.Header().Set("X-Boundary-Csp-Nonce", nonce)
|
||||
w.Header().Set(cspNonceHeader, nonce)
|
||||
h.ServeHTTP(w, req)
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user