Skip to content

CORS error on textract API #444

@WrathOP

Description

@WrathOP

When using the AWS Textract API in a browser-based Dart/Flutter application, I encountered CORS errors that prevent direct API calls. The Dart SDK doesn't currently provide a mechanism to handle these CORS restrictions.

Current behavior: Browser blocks requests to AWS Textract with CORS errors when attempting direct API calls.

Expected behavior: SDK should provide some solution or clear documentation for handling CORS issues in browser environments.

Workarounds attempted:

Custom headers (not supported)
Researched AWS documentation (no CORS settings available for Textract)(or I couldn't find any)

Currently forced to implement a server-side proxy, adding unnecessary complexity to
what should be a client-only application.

Please consider adding browser support guidance or features to the SDK to enable more straightforward AWS service calls from Dart web applications.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions