I’m trying to download a file by injecting a hidden iframe.
The URL is generated from the ember-data adapter’s
buildURL. It looks something like:
When this URL is accessed via XHR, it is correctly proxied but when loaded directly in the browser or iframe, the express server doesn’t proxy it but returns the ember app html.
How do I force ember-cli to proxy all
I could manually build the URL so it directly goes to the backend, but I would’ve wanted it to be more dynamic and work when using proxy in dev mode and setting api host in prod.