question

tsyoh-65 avatar image
0 Likes"
tsyoh-65 asked ·

Flutter - No Access-Control-Allow-Origin header is present on the requested resource.

Hi im trying to make a call to https://svcs.sandbox.ebay.com/services/search/FindingService/v1 to findItemsByKeywordsRequest. Same request with same headers works fine in postman and spring boot, but in flutter I get this error: Access to XMLHttpRequest at ' https://svcs.sandbox.ebay.com/services/search/FindingService/v1' from origin 'http://localhost:64196' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Any idea what to do? Thanks
errorfinding-apicors
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

tsyoh-65 avatar image
0 Likes"
tsyoh-65 answered ·
My solution: I am making the call from my server side. While the client making a req to my rest api server
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

helios825 avatar image
0 Likes"
helios825 answered ·
I'm not sure if this will help, but trying making the API call to Production instead of Sandbox. It's permitted, since the Finding API is just read-only.
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.