This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
OpenI
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Send error message when CSRF token is missing (
#13676
)
tags/v1.15.0-dev
Kevin Zúñiga
GitHub
4 years ago
parent
fc4bd93d3c
commit
925c8233f1
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
modules/context/api.go
+ 1
- 1
modules/context/api.go
View File
@@ -169,7 +169,7 @@ func (ctx *APIContext) RequireCSRF() {
if len(headerToken) > 0 || len(formValueToken) > 0 {
csrf.Validate(ctx.Context.Context, ctx.csrf)
} else {
ctx.Context.Error(401)
ctx.Context.Error(401
, "Missing CSRF token."
)
}
}
Write
Preview
Loading…
Cancel
Save