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

Allow access to cookies #137

Open
blitzcode opened this issue May 17, 2016 · 2 comments
Open

Allow access to cookies #137

blitzcode opened this issue May 17, 2016 · 2 comments

Comments

@blitzcode
Copy link
Contributor

Right now the only way to use cookies and to distinguish different clients is to create/read them in JavaScript and get them to the server with an FFI call. See https://github.com/blitzcode/hue-dashboard/blob/ab62b89e1de251db15e220daec536a89c12efaf5/static/dashboard.html#L45. That works fine in principle, but adds another client / server round trip every time. It would be nice to just set / read them from the HTTP headers like in a normal web server.

HeinrichApfelmus added a commit that referenced this issue Sep 2, 2017
We can always get the cookies by calling JavaScript functions,
but this would require a roundtrip, and does not work for all
cookies (HTTP only, secure).
@HeinrichApfelmus
Copy link
Owner

I have just implemented this as well, because it is very similar to something else that I want to implement (a function that retrieves the request URI). Does the latest commit work for you?

@blitzcode
Copy link
Contributor Author

Neat, I'll have some time in the next week or two to dig into this. Looking forward to delete some JS code from my project ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants