Skip to content

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

License

Notifications You must be signed in to change notification settings

webstronauts/ex_verify_origin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.