A Plug adapter to protect from CSRF attacks by verifying the Origin
header.
To use VerifyOrigin, you can add it to your application's dependencies.
def deps do
[
{:ex_verify_origin, "~> 2.0.0"}
]
end
You can use the plug within your pipeline.
defmodule MyApp.Endpoint do
plug Logger
plug VerifyOrigin
plug MyApp.Router
end
To find out more, head to the online documentation.
Please see CHANGELOG for more information on what has changed recently.
Clone the repository and run mix test
. To generate docs, run mix docs
.
The MIT License (MIT). Please see License File for more information.