Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working. #78

Open
shankymunothp opened this issue Oct 11, 2016 · 1 comment
Open

Not working. #78

shankymunothp opened this issue Oct 11, 2016 · 1 comment

Comments

@shankymunothp
Copy link

This is not working. Please help

Html code

  <div s3-upload bucket="onnbikes" ng-model="product.remote_product_file_url"
             s3-upload-options="{getOptionsUri: 'http://localhost:8080/myProject/getPresignedURLForS3', folder: 'images/'}">

My server URL - returns {
"key": "AKIAIY7TX476RMN4ULRA",
"signature": "4fRQEyo2BVOmFJYMq2boxruFjkc=",
"policy": "eyJleHBpcmF0aW9uIjogIjIwMTYtMTAtMTFUMTU6NTM6MTdaIiwiY29uZGl0aW9ucyI6IFt7ImJ1Y2tldCI6ICJvbm5iaWtlcyJ9LHsiYWNsIjogImVjMi1idW5kbGUtcmVhZCJ9LFsic3RhcnRzLXdpdGgiLCAiJGtleSIsICJpbWFnZSJdXX0="
}

But i get error

addBike.html:12:40
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://undefined.s3.amazonaws.com/. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).

My CORS config is

_ GET POST PUT _

Please help

@shankymunothp
Copy link
Author

screen shot 2016-10-11 at 9 35 05 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant