-
Notifications
You must be signed in to change notification settings - Fork 3
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
CORS headers aren't set properly for FDSN web services #115
Comments
Dear @rauwitt , apologies for the belated reply. Unfortunately, to avoid the risk of impacting other users and downstream processes, we cannot implement such an enhancement to the GeoNet FDSN service right now. Our FDSN service currently disallows the creation of a webpage which uses javascript to load data. An hopefully quick question: have you tried if you have the same issue with the FDSN real time service ( you would only find the past 7 days of data but the backend of our fdsn-nrt is different from the fdsn-archive service you tried to use. I'm not 100% sure if that will work, but perhaps worth a try? Yours is a use case we want to consider and keep in mind for future developments, so thanks a lot for reaching out and if you have time we'd be happy to collect your requirements and user story! |
Hello elidana, thanks for considering to enable javascript access as an enhancement for future development. The error messages appear when trying to use the FDSN event service of GEONET with the URL: service-nrt.geonet.org.nz. Currently the following data centers who offer FDNS webserices have implemented javascript access:
Six years ago Philip Crotwell (University of South Carolina) remarked: "I feel this kind of access probably should be An example of those webpages you can find here. |
Hello eldiana, as you mentioned right earlier there is a real danger of server overload if GEONET opens FDSN webservice for In this matter it is interesting to see what other FDSN data centers have implemented to prevent E.g. USGS tolerates 500 requests per 5 minute. Perhaps this information is useful for GEONET. |
Dear @rauwitt , thanks a lot for the additional information about the USGS implementation. Unfortunately, with current constraints on GeoNet programme and already planned developments we won't be able to implement such a service in the short term. |
FDSN web services of GEONET can't be accessed by javascript applications. The following error occurs in the browser console:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://service.geonet.org.nz/fdsnws/dataselect/1/version. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200.
It would be an enhancement to allow FDSN browser access for dynamic web pages in javascript.The text was updated successfully, but these errors were encountered: