ioos / catalog

IOOS Catalog general repo for documentation and issues
https://ioos.github.io/catalog/
MIT License
2 stars 6 forks source link

Enable CORS on CSW requests #70

Closed rsignell-usgs closed 6 years ago

rsignell-usgs commented 6 years ago

It appears CORS is not enabled on https://data.ioos.us/csw.

This makes exploring IOOS datasets by CSW in tools like TerriaJS fail.

CORS compliance can be tested at https://test-cors.org: If you drop the CSW endpoint in there under Server=>Remote URL, and hit "Send Request", it should return 200, not 0.

https://gamone.whoi.edu/csw returns 200. https://data.ioos.us/csw returns 0.

Looks like CORS can be configured here? https://github.com/brew/ckan/commit/0d97844a7d3c6be8efbdf7df9412dc2ab8bd9335#diff-3190ec7edf77111f1fecaa5d4877ba0eR81

mwengren commented 6 years ago

@benjwadams Can you take a look at this?

rsignell-usgs commented 6 years ago

As I understand it, for a public server that doesn't require/support any authentication, enabling CORS is definitely 100% safe

benjwadams commented 6 years ago

Try it now. There appears to have been a misconfiguration issue with the web server.

PS: for server configuration issues, it's often better to reach me directly via email.

rsignell-usgs commented 6 years ago

Yes! Passes the CORS test: 2018-11-08_5-58-03