:CsrfProtector
  def allowed?(env)
    !!env[&quot;PATH_INFO&quot;].to_s.match?(/^\/webhooks\//)
  end
end
# Then, in app.rb
class App &lt; Brut::Framework::App
  def id           = &quot;some-id&quot;
  def organization = &quot;some-org&quot;

  def initialize
    Brut.container.override(&quot;csrf_protector&quot;) do
      CsrfProtector.new
    end

    # ...</code></pre>
    
  </div>


</div>






  
    <h2>
      Instance Method Summary
      <small><a href="#" class="summary_toggle">collapse</a></sm