I’m assuming your image links are hard-coded directly in your JSON file? Currently, CDN Enabler is unable to replace those types of links. However, I’ll make note of this with the dev team.
Is there any way to do this currently? I was thinking of having the theme check for you plugin and use the filter you use but not on template_redirect. Im happy to create a solution for myself to get it working then integrate it into the plugin (no charge of course!)
sorry I realise I did not answer your question, it is a front end SPA, I pull all the urls from wordpress using:
add_action( ‘rest_api_init’, function () {
register_rest_route( ‘myplugin/v1’, ‘/author/(?P<id>\d+)’, array(
‘methods’ => ‘GET’,
‘callback’ => ‘my_awesome_func’,
) );
} );
(thats example above not actual code)
There currently isn’t a way to achieve this however you can certainly open a pull request on GitHub if you achieve a solution and would like to contribute. https://github.com/keycdn/cdn-enabler