File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ Code is based on the `nosurf` package implemented by
11
11
12
12
go get github.com/cbonello/revel-csrf
13
13
14
+ A demo application is provided in the samples directory. To launch it:
15
+
16
+ revel run github.com/cbonello/revel-csrf/samples/demo
17
+
14
18
## Configuration options
15
19
16
20
Revel-csrf supports following configuration options in ` app.conf ` :
@@ -90,9 +94,7 @@ Javascript-code sample to perform AJAX calls with jQuery 1.5 and newer.
90
94
});
91
95
});
92
96
93
- A demo application is provided in the samples directory. To launch it:
94
-
95
- revel run github.com/cbonello/revel-csrf/samples/demo
97
+ You can call ` csrf.ExemptedFullPath() ` or ` csrf.ExemptedGlob() ` to exempt routes from CSRF checks. See ` app/init.go ` in demo application.
96
98
97
99
## TODO
98
100
You can’t perform that action at this time.
0 commit comments