Return JSON from a Laravel server from a different domain using javascript
Been tinkering for 3 hours how to get the things going.
For the javascript side
In web.php add the route
For the controller make sure you have added ->setCallback($request->input('callback')) at the end of the json response.
0 comments:
Post a Comment