T
traeai
登录
返回首页
Vercel News

Vercel Sandbox 防火墙新增请求代理和过滤功能

7.5Score
Vercel Sandbox 防火墙新增请求代理和过滤功能

TL;DR · AI 摘要

Vercel 的 Sandbox 防火墙新增了请求代理和过滤功能,显著提升了开发环境的安全性和灵活性。

核心要点

  • Vercel Sandbox 防火墙支持请求代理和过滤。
  • 开发者可更灵活地管理开发环境中的网络流量。
  • 增强了对恶意请求的防护能力。

结构提纲

按章节快速跳转。

  1. 介绍 Vercel Sandbox 新增的功能。

  2. 详细说明请求代理的工作机制。

  3. 描述请求过滤的具体实现。

  4. 分析新增功能对安全性的改进。

  5. 阐述如何防止恶意请求。

思维导图

用一张图看清主题之间的关系。

查看大纲文本(无障碍 / 无 JS 友好)
  • Vercel Sandbox 新增功能
    • 请求代理
      • 机制详解
    • 请求过滤
      • 配置示例
    • 安全性提升
      • 防护效果

金句 / Highlights

值得收藏与分享的关键句。

#Vercel#Sandbox#防火墙#网络安全
打开原文

Vercel Sandbox firewall now supports request proxying and filtering - Vercel

Skip to content

[](https://vercel.com/home)

  • Products
  • ##### Core Platform
  • Resources
  • ##### Company
  • ##### Learn
  • ##### Open Source
  • Solutions
  • ##### Use Cases
  • ##### Tools
  • ##### Users

Ask AI

Ask AILog In

Sign UpSign Up

Blog/Changelog

Vercel Sandbox firewall now supports request proxying and filtering

Authors

![Image 1](https://twitter.com/tomlienard)![Image 2](https://github.com/valerian-roche)![Image 3](https://github.com/tutman96)

1 min read

Copy URL

Copied to clipboard!

May 11, 2026

The Vercel Sandbox firewall now supports forwarding specific HTTP requests to a proxy you control. You can also use matchers to filter forwarding and credentials brokering to only the requests that need it.

[Link to heading](https://vercel.com/changelog/vercel-sandbox-firewall-now-supports-request-proxying-and-filtering#requests-proxying)Requests proxying

You can now route outbound sandbox traffic through your own proxy for logging, debugging, or transforming requests and responses. Set a forwardURL on any allowed domain, and the firewall will forward matching HTTPS requests to your server.

The proxy receives the original request along with additional headers to identify the source:

  • vercel-forwarded-host: The original request's SNI
  • vercel-forwarded-scheme: The original request's scheme
  • vercel-forwarded-port: The original request's port
  • vercel-sandbox-oidc-token: A Vercel-issued OIDC token that the proxy can use to authenticate the request and identity the source team / project / sandbox. Learn more about it in the docs
code
1import { Sandbox } from '@vercel/sandbox';2
3// Sandbox has access to everything, with a proxy for requests towards github.com4const sandbox = await Sandbox.create({5  networkPolicy: {6    allow: {7      "github.com": [{8        forwardURL: "https://my-custom-proxy.vercel.app/api/proxy"9      }],10      // Allow traffic to all other domains. If unset only defined ones are reachable.11      "*": []12    }13  }14});

[Link to heading](https://vercel.com/changelog/vercel-sandbox-firewall-now-supports-request-proxying-and-filtering#filtering)Filtering

Additionally, you can now use matchers to filter request forwarding or credentials brokering to requests matching a specific path, method, query string, or headers. This gives you fine-grained control over which requests get transformed; for example, only forwarding POST requests to a specific API path while allowing all other traffic through untouched.

code
1import { Sandbox } from '@vercel/sandbox';2
3// Sandbox has access to everything, with a proxy for requests towards POST github.com/api/*4// Other requests to github.com are allowed and not proxied5const sandbox = await Sandbox.create({6  networkPolicy: {7    allow: {8      "api.github.com": [{9        match: {10          path: { startsWith: "/v1" },11          method: ["POST"]12        },13        forwardURL: "https://my-custom-proxy.vercel.app/api/proxy"14      }],15      // Allow traffic to all other domains. If unset only defined ones are reachable.16      "*": []17    }18  }19});

These features are available in beta for Pro and Enterprise plans. Get started by installing the @vercel/sandbox@beta SDK, and learn more in the docs about requests proxying and matchers.

Ready to deploy?Start building with a free account. Speak to an expert for your _Pro_ or Enterprise needs.

Start DeployingTalk to an Expert

Explore Vercel Enterprise with an interactive product tour, trial, or a personalized demo.

Explore Enterprise

Get Started

Build

Scale

Secure

Resources

Learn

Frameworks

SDKs

Use Cases

Company

Community

[](https://vercel.com/home)

Loading status…Select a display theme:system light dark

AI 可能会生成不准确的信息,请核实重要内容

Vercel Sandbox 防火墙新增请求代理和过滤功能 | Vercel News | traeai