Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.39 KB

README.md

File metadata and controls

53 lines (35 loc) · 1.39 KB

ex_verify_origin

Build Status Hex.pm

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

Sponsored by The Webstronauts

Installation

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

def deps do
  [
    {:ex_verify_origin, "~> 2.0.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.