bypassCorsPreflight property
Whether to eliminate the CORS preflight request.
If set to true
, all HTTP headers will be packed into an '$httpHeaders'
query parameter, which should downgrade complex CORS requests into
simple ones. This eliminates an extra roundtrip.
For this to work correctly, a proxy server must be set up that understands the query parameter and can unpack/send the original list of headers to the server endpoint.
Implementation
final bool? bypassCorsPreflight;