vaadin-microservices-demo icon indicating copy to clipboard operation
vaadin-microservices-demo copied to clipboard

Embedded pages complaining that cookies are disabled.

Open Rulasmur opened this issue 6 years ago • 8 comments

Both sections show the message: Cookies disabled Please enable cookies in your browser and click here or press ESC to try again.

Rulasmur avatar Mar 12 '18 10:03 Rulasmur

I tried updating the Spring libraries to spring-boot 2.0.1.RELEASE and spring-cloud Finchley.RC1, with the same result. The comunication between Server Vaadin and client seems disable:

com.vaadin.DefaultWidgetSet-0.js:5983 Wed May 09 13:05:30 GMT+200 2018 com.vaadin.client.communication.MessageHandler SEVERE: Response didn't contain a server id. Please verify that the server is up-to-date and that the response data has not been modified in transmission.

cloud4dev avatar May 09 '18 11:05 cloud4dev

Having same problem - happens in Edge, Chrome and Firefox. Seems to be some suggestion that Chrome has (still does?) not allowed cookies from localhost. See: https://stackoverflow.com/questions/7346919/chrome-localhost-cookie-not-being-set https://stackoverflow.com/questions/8134384/chrome-doesnt-create-cookie-for-domain-localhost-in-broken-https https://bugs.chromium.org/p/chromium/issues/detail?id=56211

No change with adding "localhost.com 127.0.0.1" to hosts file.

Did Rulasmur or cloud4dev (or anyone else) manage to get this demo working after having this error?

Edit: Since realised that Chrome does show the cookies as left by localhost under chrome://settings/content/all they do appear. Defiantly come from this as clearing and refreshing causes them to reappear.

skifans avatar Jul 12 '19 10:07 skifans

I also have the same problem. Does anybody has any idea how to get it work?

yurili8 avatar Jul 13 '19 03:07 yurili8

@yurili8 I have since been able to partly get the tutorial working by enabling local files cookies in Chrome as per this stackoverflow answer: https://stackoverflow.com/a/43996198 (In the event of it being deleted it involved placing --enable-file-cookies after the file path into the target text box on a shortcut) Still not fully fixed though, the tweets show but still getting the cookies required message over he admin section to the left. Also message regarding server ID and lack of cookie support still both appear in the console. No idea if this (or similar) flags exists in other browsers. Screenshot

skifans avatar Jul 15 '19 10:07 skifans

I'm not able to reproduce with the last version in the repo. Did you do or change anything in your projects?

alejandro-du avatar Jul 26 '19 17:07 alejandro-du

No I didn't, I was just trying to get the code running in the repository as is. Screenshot above is on Chrome 75.0.3770.142, afraid I don't really feel like I have much to add but happy to provide any other information if it might be useful to you.

skifans avatar Jul 29 '19 12:07 skifans

i'm having a "must turn on cookies" issue running this demo.

i believe it is related to this : https://github.com/vaadin/flow/issues/7736

fwiw.

tony-pelton avatar Mar 13 '20 19:03 tony-pelton

Problem still exist :-(

larbigj avatar Dec 18 '20 10:12 larbigj