-
Notifications
You must be signed in to change notification settings - Fork 2
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
Retrieve the revision #203
Comments
This query is not possible in roc and wouldn't be much more efficient than a normal GET because we need to do a full query for permissions |
In the API documentation there is:
And if I check the network connection in the browser I really retrieve my ETag (revision of couchdb). It is just that from javascript I never could retrieve the header field. Do you think there should be an new url like:
to retrieve revision ? |
Please read the documentation of fetch. The headers object is not what you think. I confirm |
Actually it was not working with cors but I finally found the solution. You need to add in the header an 'Access-Control-Allow-Headers' entry.
I changed this on our server and it works correctly now. |
It should be possible to make this kind of query:
When in all the cases the result.headers is empty while in the network console the ETag containing the revision is correctly return.
It could be related to CORS and I also tried to add on the server the following line:
In all my trials the
result.headers
is an empty object.Any idea what I'm doing wrong ?
The goal here is to implement a monitoring system to warn the end-users when there is a new revision on the server.
The text was updated successfully, but these errors were encountered: