I have installed Dreamfactory version 2.0.2 using bitnami on Amazon EC2 machine. I am trying to get jpeg image from Amazon S3.
I am using Angular JS SDK.
But I keep getting the error .
“No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost’ is therefore not allowed access.”

My Dreamfactory CORS setting are properly set.
Origin : ''
Path: '
Headers: '*'
Max Age: 0

I am able to create new file or folder on Amazon S3 using angularjs sdk but I am not able to get the image.
I am able to get the image by using 'POSTMAN rest client ’ but not using any browser.

Here is my AngularJs code:

method: ‘GET’,
url: ‘/api/v2/filestorage/truck3.jpg’,
download: ‘true’

      }).success(function (result) {

Please tell me what I am doing wrong.

I have added the following configuration to my httpd.conf file in apache and it is working now.

Header always set Access-Control-Allow-Origin ""
Header always set Access-Control-Max-Age "1000"
Header always set Access-Control-Allow-Headers "
Header always set Access-Control-Allow-Methods “POST, GET, OPTIONS, DELETE, PUT”

But this should have been added through dreamfactory CORS settings.

Hi. any solution diferent to modify httpd.conf