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
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)
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: