ex_verify_origin

Build StatusHex.pm

A Plug adapter to protect from CSRF attacks by verifying the Origin header.

Installation

To use VerifyOrigin, you can add it to your application’s dependencies.

def deps do
  [
    {:ex_verify_origin, "~> 0.1.0"}
  ]
end

Usage

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.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Clone the repository and run mix test. To generate docs, run mix docs.

Credits

License

The MIT License (MIT). Please see License File for more information.