You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a look at this, and it seems to me like it should indeed be part of the spec. I could not find a mention of it in any previous version of the RS spec, except as a header included in a Webfinger response example.
Regarding the exact headers to add, the situation is a bit unclear:
Access-Control-Expose-Headers exists only to specify additional safe headers that are not CORS-safelisted response headers, which include Content-Lengthaccording to MDN, but not according to the current Fetch spec.
If a runtime implements Fetch according to the spec, then Content-Type would also only be allowed in the case of a shortlist of a few types that are not commonly used for RS.
If a server supports range requests (optional), then Content-Range should also be added.
Yes, I was looking at MDN, and am changing Armadietto to send
'Access-Control-Expose-Headers': 'Content-Length, Content-Type, ETag' (it doesn't currently support Range requests)
Hey,
Thanks for your awesome work on remoteStorage, love it.
I couldn't find any mention of
Access-Control-Expose-Headers
in the current version of the spec. I did find mentions in previous version though https://github.com/remotestorage/spec/issues?q=Access-Control-Expose-Headers+is%3Aclosed .See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers
Is there any reason
Access-Control-Expose-Headers
was removed ? Without it browsers will not allow to getContent-Length
andETag
headers.The text was updated successfully, but these errors were encountered: