plug_misdirected_request v1.0.0 PlugMisdirectedRequest
Add this plug to your pipeline.
Configuration
The plug can be included with either a given domain or with
the option auto
(phoenix
only).
plug(PlugMisdirectedRequest, domain: "whitelisted.domain.com")
plug(PlugMisdirectedRequest, domain: :auto, endpoint: MyApp.Endpoint)
Link to this section Summary
Link to this section Functions
Link to this function
call(conn, opts)
Callback implementation for Plug.call/2
.
Link to this function
init(opts)
Callback implementation for Plug.init/1
.