Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csrf

csrf middleware for goframe web module

How to use

// v2 for gf/v2
go get github.com/gogf/csrf/v2

// v1 for gf
go get github.com/gogf/csrf

example

Check the effect by web request(GET before POST)

http://127.0.0.1:8199/api.v2/csrf

You can get token value(default name _csrf) in cookies

You can set the token in request with param(Router < Query < Body < Form < Custom < Header)

About

CSRF middleware for GoFrame web server.

Topics

Resources

Stars

9 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages