本 Demo 使用 Edge Function 作为代理,
Edge Function
解决前端直接请求百度 API 的跨域问题。
✅跨域请求成功!
edgeone-cors-demo/ ├── index.html # 前端页面 └── edge-functions/ └── api/ └── token.js # Edge Function 代理