Skip to content

Path to DebugBar get to the Preview controller #148

Closed
@mayeco

Description

@mayeco

I use DebugBar and by websocket the path get detected by the preview controller.

ws://127.0.0.1:3000/_debugbar/cable

I have to fixed by a monkeypatch:

module Maglev
  class PreviewConstraint
    def matches?(request)
      request.headers["HTTP_UPGRADE"] != "websocket" && (accepted_format?(request) || crawler?(request)) && match_host?(request)
    end
  end
end

@did do you think we should add that to the PreviewConstraint? any site using socket inside maglev?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions