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:
$http({
method: ‘GET’,
url: ‘/api/v2/filestorage/truck3.jpg’,
download: ‘true’
}).success(function (result) {
console.log(result);
});
Please tell me what I am doing wrong.