OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Use single-line start_with?
Oliver Günther0b5cc6bf0f53
diff --git a/config/environments/production.rb b/config/environments/production.rbindex b3bb90c4140..fa6a1b2ee88 100644--- a/config/environments/production.rb+++ b/config/environments/production.rb@@ -186,10 +186,9 @@ Rails.application.configure doconfig.host_authorization = {exclude: ->(request) dobase = OpenProject::Configuration["rails_relative_url_root"]- request.path.start_with?("#{base}/health_check") ||- request.path.start_with?("#{base}/sys")+ request.path.start_with?("#{base}/health_check", "#{base}/sys")end,- response_app: -> env do+ response_app: -> do[400, { "Content-Type" => "text/plain" }, ["Invalid host_name configuration"]]end}