1 Reply Latest reply on Aug 19, 2016 11:26 AM by Alex Epifanov

    Not allowed to load local resource

    Douglas Lise

      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.