adam-singer / dart-carte-du-jour

Pub documentation generation system
www.dartdocs.org
Other
25 stars 8 forks source link

Enable CORS #75

Closed d2m closed 10 years ago

d2m commented 10 years ago

allow access to the data in http://www.dartdocs.org/documentation/[package]/[version]/package_build_info.json

adam-singer commented 10 years ago

@d2m Do you know how to do that for specific files with cloud storage? I've found the following documentation on CORS configuration https://developers.google.com/storage/docs/cross-origin

gsutil cors set cors-json-file.json gs://example

[
    {
      "origin": ["http://example.appspot.com"],
      "responseHeader": ["x-meta-goog-custom"],
      "method": ["GET", "HEAD", "DELETE"],
      "maxAgeSeconds": 3600
    }
]

What might you be planning to use package_build_info.json and does it contain the data you need? That file is a leftover artifact when the project was not using cloud datastore.

d2m commented 10 years ago

I found http://www.dartdocs.org/index.json, this file should be sufficient for building clients for now.