lundi 31 octobre 2016

Serving a iframe content from Ember app during development

I've a public/uploads/... folder in my Ember app intended to hold all of my user's uploaded files. It includes images, videos as well as some .html files that I want to serve via an iframe in the app.

I'm trying to serve these iframes in a component:

<iframe src="/public/uploads/folder/file.html">

The development serve is presumably receiving requests for the file.html and checking the router as it looks like a normal GET request as opposed to an asset. This correctly leaves me with an error:

Uncaught UnrecognizedURLError

Is there any way to tell the ember-cli dev server that I want it to serve that particular folder?




Aucun commentaire:

Enregistrer un commentaire