-
Notifications
You must be signed in to change notification settings - Fork 44
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
Remove server-options-asterisk-accept-headers. Add OPTIONS to server-accept-headers #369
Remove server-options-asterisk-accept-headers. Add OPTIONS to server-accept-headers #369
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think OPTIONS *
is the most promising candidate for a sane, general discovery mechanism for HATEOAS, but given that nginx doesn't support it, it is indeed not possible to rely on 😭
sighs Might be worth logging an issue on |
This was raised with nginx and subsequently closed as "won't fix". |
Thanks for finding that, @acoburn. I don't see a way to comment on a closed issue there; might be because I haven't logged in to their |
@TallTed even if nginx were to support such an operation, it is currently not possible to issue such a request via the JavaScript |
Server and client implementations in the wild is an important signal but it is perhaps worth repeating that the primary reason for this PR is about removing the assumption that the owner of a URI delegates authority to a server to receive/respond to request targets in asterisk-form. Even if software (the servers, proxies, clients, SDKs, applications, .. at any level..) have the capability to request and respond to
a Solid server instance may never have been configured to even receive such request. Which is why "[c]lients can't rely on all servers (be instructed by their respective URI owners) allowing the request." As it stands, the Protocol requires that servers must make a storage (root container), at any URI path ending with a slash, but nothing further. The same reasoning was applied to removing any expectation that a Solid server can receive/respond to requests at root path The Protocol can be changed to require specific request targets but until there is a need to force all server instances to receive/respond to specific requests, we should continue to tighten the spec. |
Double-checked: neither fetch and xhr specs describe how
|
Related issue: #356
Not all servers will be configured to receive/respond to
OPTIONS *
(asterisk-form
). Clients can't rely on all servers (be instructed by their respective URI owners) allowing the request.Checking for
Accept-*
header options should be possible withOPTIONS
targeting a resource (origin-form
orabsolute-form
).