Origami Frontend Components & Services

Readme: o-fetch-jsonp

o-fetch-jsonp has a support status of "dead". This means that there are no plans to fix any issues with this component, and it may stop working at any point. More information on the status of this component is available in the README. If you still rely on this component or have concerns, please contact the Origami team.

o-fetch-jsonp is deprecated. Use the fetch polyfill and Cross-Origin Resource Sharing instead.

Client side fetch wrapper that fallbacks to JSONP


Uses fetch, but fallbacks to a fetch-like interface using JSONP under the hood


bower install -S o-fetch-jsonp


import fetchJsonp from 'o-fetch-jsonp';
const opts = {
    timeout: 1000
fetchJsonp('http://other.domain.com/foo', opts)
    .then(data => {

Note: If using CommonJS modules,

const fetchJsonp = require('o-fetch-jsonp').default;

Where opts can take

dead Origami v1 (Bower)
Switch component view

GitHub: o-fetch-jsonp

Install o-fetch-jsonp

If using the Build Service, add o-fetch-jsonp@^2.3.0 to your script tag.

If using the npm package manager for a Manual Build, run npm install --save-peer "@financial-times/o-fetch-jsonp@^2.3.0".

Help & Support

o-fetch-jsonp is maintained directly by the Origami team. If you have any questions about o-fetch-jsonp or Origami in general, we are happy to help. 😊

Slack: #ft-origami
Email: origami.support@ft.com

Feedback / Issues

To report a bug or request features please create an issue on Github. For support or general feedback please get in touch 😊

Slack: #ft-origami
Email: origami.support@ft.com