1

Can anyone show me how to get and post data with API in flutter? I have tried some flutter API tutorials with Laravel but when I print the value is error cors, something wrong with my flutter code or my API? or there are some settings in laravel when i create API?

create CRUD in Flutter using API from laravel

1 Answers1

1

I think You are having CORS issue from your mobile app. From the backend (laravel) you need to allow the request from your specific IP or even you can allow for all the domains. Please refer to this link on how to enable CORS on laravel. https://www.stackhawk.com/blog/laravel-cors/

Ravi Sigdel
  • 161
  • 10