A comprehensive Capacitor plugin version 2.1.4 that provides advanced networking capabilities including CORS bypass, HTTP/2, HTTP/3 (planned), gRPC, GraphQL, WebSocket with auto-reconnect, SSE, file operations with progress tracking, and MCP (Model Context Protocol) support. It offers connection pooling, batch requests, smart caching, and network monitoring. Ships TypeScript definitions. Peer dependencies include @capacitor/core >=7.0.0 and @modelcontextprotocol/sdk ^1.0.0. Released under MIT license. Differentiators: modular TypeScript architecture, broad protocol support, and integrated AI communication protocol (MCP) with StreamableHTTP transport.
npm install capacitor-cors-bypass-enhancedNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates a basic CORS-bypassed GET request using the plugin's makeRequest method with error handling.
Use protocolConfig.http3.enabled: false on iOS. Fallback to HTTP/2 or HTTP/1.1.
Ensure code runs inside Capacitor app (not browser).
Migrate to StreamableHTTP transport if using MCP features.
Upgrade @capacitor/core to >=7.0.0.
Check platform documentation for proxy limitations; consider using direct requests where proxy not available.
Increase pool size via options.batchConfig.maxConcurrent or process in smaller batches.
Set protocolConfig.http3.enabled: false when on iOS.
Run 'npm install capacitor-cors-bypass-enhanced' and 'npx cap sync' to link plugin.
Use 'import { CorsBypass } from 'capacitor-cors-bypass-enhanced''.Wrap code in Capacitor.isPluginAvailable('CorsBypass') check or ensure running inside Capacitor WebView.