zlqhem / mlapi

https://mlapi-livid.vercel.app
MIT License
1 stars 3 forks source link

resolve CORS(Cross-Origin Resource Sharing) problem #1

Closed zlqhem closed 8 months ago

zlqhem commented 8 months ago

When flutter sample app requests HTTP post, XMLHttpRequest error occurs.

Error: ClientException: XMLHttpRequest error., uri=https://qs9eqe954g.execute-api.us-east-1.amazonaws.com/detect
    dart-sdk/lib/_internal/js_dev_runtime/patch/core_patch.dart 941:28                get current
zlqhem commented 8 months ago

https://stackoverflow.com/questions/67253808/xmlhttprequest-error-while-using-http-post-flutter-web