Flutter and Frappe

hope this message finds you well.

I’m currently working on a project that involves accessing the REST API of an ERPNext instance from a Flutter application. The ERPNext site is hosted on Frappe Cloud, and while attempting to make API requests, I encountered a CORS error.

Here’s a bit more detail about the issue:

  • Instance Type: Frappe Cloud hosted ERPNext
  • Frontend Framework: Flutter
  • Issue: CORS error when trying to make HTTP requests to the ERPNext API
  • Setup: Followed the setup instructions from Frappe Cloud documentation
  • Code Access: I do not have access to the backend codebase

Could you please guide me on how to enable CORS for my site on Frappe Cloud, or suggest any alternative solutions to resolve this issue? I appreciate your help in advance.