module EsHero
  class HomeController < ActionController::Base
    layout false

    protect_from_forgery

    http_basic_authenticate_with name: ENV["ESHERO_USERNAME"], password: ENV["ESHERO_PASSWORD"] if ENV["ESHERO_PASSWORD"]

    def index
      @nodes = EsHero.nodes
      @indices = EsHero.indices
    end

  end
end

module EsHero
  class HomeController < ActionController::Base
    layout false

    protect_from_forgery with: :exception

    http_basic_authenticate_with name: ENV["ESHERO_USERNAME"], password: ENV["ESHERO_PASSWORD"] if ENV["ESHERO_PASSWORD"]

    def index
      @nodes = EsHero.nodes
      @indices = EsHero.indices
    end
  end
end

Set with: exception (no existing issue since only get requests)
Set with: exception (no existing issue since only get requests)
