amazon s3 - How can you include http://foo.local in CORS Access-Control-Allow-Origin? -
i'm using *
, apparently that's not enough. i'm trying upload file client browser. works when client's url localhost:3000
or foo.com
. it's not working when url http://meteor.local
. i've tried changing third line <allowedorigin>http://meteor.local</allowedorigin>
, same error.
the browser error:
the error text misleading – error not due header sent s3. adding access rule cordova fixed it. (in meteor, add app.accessrule('http://meteor.local');
in mobile-config.js
.)
Comments
Post a Comment