Hi all,
Has anyone used Cloud9 with Amazon S3 and CORS?
I’m using and S3 bucket to host some of my javascript libraries which I’m using in my node.js Cloud9 dev environment and a number of other locations including Google Apps Scripts
I had the S3 permissions on the libraries set to Grantee:everyone open/download and everything was fine. I don’t really want to have the libraries open at that level of permissions so I switched from “everyone” to “any authenticated user” and configured CORS on my S3 bucket.
The libraries still work ok in Google but NOT in Cloud9. Even setting the allowed origin to * doesn’t work in cloud9. Heres the CORS:
<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>https://sites.google.com/*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<AllowedMethod>POST</AllowedMethod>
<AllowedMethod>PUT</AllowedMethod>
<AllowedMethod>DELETE</AllowedMethod>
<AllowedMethod>HEAD</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<AllowedHeader>*</AllowedHeader>
</CORSRule>
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<AllowedMethod>POST</AllowedMethod>
<AllowedMethod>PUT</AllowedMethod>
<AllowedMethod>DELETE</AllowedMethod>
<AllowedMethod>HEAD</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>
The libraries are accessible in Google sites but not when I serve a site in Cloud9. I’ve tried making the Cloud9 app public and that didn’t work either.
Is there something I’m missing to serve up my libraries?
Many thanks