I want to show some images (a lot of them) stored in file system. Actually they are in db/db-files folder.
Currently I have an action in my controller that receives the id of the image in the query-string and return the contents of the image as raw data.
For performance reasons I am trying to show them directly using the file:// protocol, but I am having this error in WebIspector console:
"Not allowed to load local resource"
If I copy the src value and paste it in another browser, like Firefox or Chrome, the image is shown normally.
I tried also set CORS and CSP headers via @response, but nothing has worked.
Do you have any idea?
Thanks in advance.
Sorry for late response. Is this still an issue?
Please provide some details:
1) Platform/device/OS version you are using.
2) Version of Rhodes.
3) Actual code of your controller which reads the image and page code that shows it.
4) Contents of your build.yml and rhoconfig.txt files.