mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-05-16 09:59:54 +00:00
remove SetAllowedFormAction and explicitly set csp header
This commit is contained in:
@@ -100,12 +100,6 @@ func (oc *OidcController) authorizeHandler(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
// Set the allowed form-action in CSP after validation (when response_mode is form_post)
|
||||
// Only set if we have a valid callback URL from the service
|
||||
if input.ResponseMode == "form_post" && callbackURL != "" {
|
||||
middleware.SetAllowedFormAction(c, callbackURL)
|
||||
}
|
||||
|
||||
response := dto.AuthorizeOidcClientResponseDto{
|
||||
Code: code,
|
||||
CallbackURL: callbackURL,
|
||||
|
||||
Reference in New Issue
Block a user