-
Notifications
You must be signed in to change notification settings - Fork 16
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
Consolidating allowed/preferred? #61
Comments
My intention while speccing out the algorithm was that you don't need to duplicate your preferred inside of allowed. I think this is captured in https://wicg.github.io/origin-policy/#update-an-origins-origin-policy, but perhaps not in the explainer. I think the list version could work. It does lose one capability, which is to not have a preferred policy. I.e. if you do Hmm... |
I'm pretty convinced now that we should not separate allowed and preferred. However, the future keys problem is an issue, especially since we want to add My reading of the structured headers spec, then, is that the best way to accomplish this is to continue to use a dictionary + inner list, so something like
in the future. I don't see any way in the structured headers spec to use a top-level list, but also have parameters or other configuration options. |
Gah. In the process of writing up a PR for this, I changed my mind. The issue is that If we just treat the first entry of
I think the current separation is a bit nicer. We still need to clarify that it's additive with |
#67 points out that it can be useful to have values that require less maintenance from the site author. This adds the latest token for the allowed=() list, and the latest-from-network token for the preferred= entry, to allow such use cases. In the process, this expands the README's illustration of the Origin-Policy header to contain more concrete examples, and removes the spec-sketch from version-negotiation.md in favor of a more broad outline. This also clarifies that you do not need to duplicate the preferred value inside allowed. Closes #67. Closes #61.
#67 points out that it can be useful to have values that require less maintenance from the site author. This adds the latest token for the allowed=() list, and the latest-from-network token for the preferred= entry, to allow such use cases. In the process, this expands the README's illustration of the Origin-Policy header to contain more concrete examples, and removes the spec-sketch from version-negotiation.md in favor of a more broad outline. This also clarifies that you do not need to duplicate the preferred value inside allowed. Closes #67. Closes #61.
#67 points out that it can be useful to have values that require less maintenance from the site author. This adds the latest token for the allowed=() list, and the latest-from-network token for the preferred= entry, to allow such use cases. In the process, this expands the README's illustration of the Origin-Policy header to contain more concrete examples, and removes the spec-sketch from version-negotiation.md in favor of a more broad outline. This also clarifies that you do not need to duplicate the preferred value inside allowed. Closes #67. Closes #61.
#67 points out that it can be useful to have values that require less maintenance from the site author. This adds the latest token for the allowed=() list, and the latest-from-network token for the preferred= entry, to allow such use cases. In the process, this expands the README's illustration of the Origin-Policy header to contain more concrete examples, and removes the spec-sketch from version-negotiation.md in favor of a more broad outline. This also clarifies that you do not need to duplicate the preferred value inside allowed. Closes #67. Closes #61.
The current proposal forces the name of the "preferred" policy to be listed twice:
Could
Origin-Policy
instead take an ordered List of all "allowed" policy names, and treat the first policy as the de-facto “preferred” policy?Pros: Simpler, lighter.
Cons: Not as self-explanatory. Less extensible? (to future keys besides
allowed
/preferred
)The text was updated successfully, but these errors were encountered: