Skip to content

Commit

Permalink
throw error when allowed hosts not configured
Browse files Browse the repository at this point in the history
  • Loading branch information
yesoreyeram committed Jun 24, 2024
1 parent 315b92e commit 22e0b80
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/models/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ func (s *InfinitySettings) HaveSecureHeaders() bool {
}
return false
}
if len(s.FormPostItems) > 0 {
return true
}
return false
}

Expand Down

0 comments on commit 22e0b80

Please sign in to comment.