Add JSONP support for JavaScript clients
Issue #35
closed
I've noticed the API doesn't have headers, so it won't serve to a JS client, one solution would be add support for JSONP (like JSON but wrapped into a function)
Comments (7)
-
-
- changed status to resolved
-
reporter Will take a look, and get back with the results
-
reporter couldn't make it work. it responses in jsonp format: callback([{"id":...}]) but it forces to download the response, therefore I'm getting errors with jQuery.
-
Could you send your config.yml? It would make it easier to find the problem.
-
- changed status to open
-
- changed status to closed
After a month we didn't got a reply, we assume that is is fixed.
- Log in to comment
The tool we're using, FOSRestBundle, actually supports enabling JSONP, it's just off by default. You can enable it on your installation if you wish. Check out the documentation at https://github.com/FriendsOfSymfony/FOSRestBundle/blob/master/Resources/doc/index.md
If you find something in our code or configuration that prevents this from working properly, let us know.