Closed
Description
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?