Skip to content

Commit

Permalink
Update interceptor.md
Browse files Browse the repository at this point in the history
  • Loading branch information
0fatal authored Nov 17, 2023
1 parent 2e57944 commit 7d651c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/function/interceptor.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Laf 云函数拦截器,是在所有的云函数请求之前被请求,故而
```typescript
export default async function(ctx: FunctionContext) {
// 获取请求的实际 IP
const ip = ctx.headers['x-forward-for']
const ip = ctx.headers['x-forwarded-for']
if(ip === '111.111.111.111'){
return true
}else{
Expand Down

0 comments on commit 7d651c9

Please sign in to comment.