csrf

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2018 License: MIT Imports: 4 Imported by: 0

README

csrf

Build Status Coverage Status Go Report Card GoDoc

CSRF middleware for Go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config Config) middleware.Middleware

New creates new csrf middleware

Types

type Config

type Config struct {
	Origins          []string
	ForbiddenHandler http.Handler
	IgnoreProto      bool
}

Config is the csrf config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL