Not allowed to load local resource

D Douglas Lise 3 years ago
41 1 0

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.

Please register or login to post a reply

1 Replies

A Alex Epifanov

Hi Douglas,

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.

Regards,
Alex.

CONTACT
Can’t find what you’re looking for?