alejandro-du / vaadin-microservices-demo

A microservices example developed with Spring Cloud and Vaadin
126 stars 63 forks source link

Embedded pages complaining that cookies are disabled. #2

Open Rulasmur opened 6 years ago

Rulasmur commented 6 years ago

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

cloud4dev commented 6 years ago

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.

skifans commented 5 years ago

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.

yurili8 commented 5 years ago

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

skifans commented 5 years ago

@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

alejandro-du commented 5 years ago

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

skifans commented 5 years ago

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.

tony-pelton commented 4 years ago

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.

larbigj commented 3 years ago

Problem still exist :-(