3 Commits

Author SHA1 Message Date
0661ae261f chore: remove unused API request handling code from index.js 2025-01-06 17:59:12 +08:00
0ff71170e1 feat: enhance API request handling for WebSocket and HTTP protocols
- Added support for WebSocket upgrade requests, converting HTTP/HTTPS to WS/WSS.
- Improved handling of regular HTTP requests by creating a new target URL based on the API base URL.
- Cleaned up request headers to remove potentially problematic headers.
- Enhanced response handling by copying all response headers and setting CORS headers for better cross-origin support.
- Improved error handling to include CORS headers in error responses.
2025-01-06 17:56:19 +08:00
4522661879 chore: Update .gitignore to include Tencent Cloud EdgeOne files 2025-01-06 17:43:35 +08:00