My config for fos_rest section:
fos_rest:
serializer:
serialize_null: true
view:
view_response_listener: force
force_redirects:
html: true
formats:
jsonp: true
json: true
xml: false
rss: false
templating_formats:
html: false
mime_types:
json: ['application/json', 'application/x-json', 'application/vnd.example-com.foo+json']
jsonp: ['application/jsonp']
rss: 'application/rss+xml'
jpg: 'image/jpeg'
png: 'image/png'
jsonp_handler:
callback_param: callback
body_listener: true
param_fetcher_listener: force
allowed_methods_listener: true
access_denied_listener:
json: true
format_listener:
rules:
- { path: '^/', priorities: ['jsonp','json', 'xml'], fallback_format: json, prefer_extension: true }
routing_loader:
default_format: ~
exception:
codes:
'Symfony\Component\Routing\Exception\ResourceNotFoundException': 404
'Doctrine\ORM\OptimisticLockException': HTTP_CONFLICT
messages:
'Symfony\Component\Routing\Exception\ResourceNotFoundException': true
When I try to access ie
http://10.0.0.10/users.jsonp?callback=call
I have data forced to download and not displayed. Requested data is correct. How to make it display in the browser?