Skip to content
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

Cookie support #98

Open
demurgos opened this issue Feb 23, 2022 · 0 comments
Open

Cookie support #98

demurgos opened this issue Feb 23, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@demurgos
Copy link

demurgos commented Feb 23, 2022

Hello!
I have a website that must work without JavaScript, and I am looking into server-side solutions to detect if cookies are enabled.
A solution may be to set a test cookie, use an internal redirect, and check if the cookie is there; but I believe it's possible to do better.

Client hints look like a natural fit: the server could explicitly ask if cookies (or more generally any storage) are enabled by the user agent. What is your opinion on this? How likely is it to add such a hint?

If we go into the details, there should probably be ways to ask more granular questions:

  • storage shared between the client and server (e.g. cookies or the Accept-CH cache)
  • client-side only storage (e.g. localStorage, indexedDb)
@arichiv arichiv added the enhancement New feature or request label Feb 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants