4

I created a Vaadin (8.2.0) web app in Netbeans and uploaded it on a Glassfish (4.1) server. I can access the app's home page in Edge and Firefox, however in Chrome I get this message:

Cookies disabled

This application requires cookies to function. Please enable cookies in your browser and click here or press ESC to try again.

I double checked my chrome settings and know that cookies are allowed. I even added the server specifically in the allowed list.

What do think is missing?

Community
  • 1
  • 1
Hamed
  • 1,175
  • 3
  • 20
  • 46

2 Answers2

1

As Artur Signell mentioned in the comments, the solution was to simply clear all the cached cookies in the Chrome web browser. After that, the app just worked fine and I didn't get that error.

Hamed
  • 1,175
  • 3
  • 20
  • 46
  • how you will tell the client to clear cookies in case of an e-commerce application. – Anuj Victor Mar 29 '20 at 11:29
  • This solves the issue temporary. The problem for me started when switching from http to https and back to http. – Avec Jan 08 '21 at 13:17
  • Unfortunately, this does not solve the problem. It is/can be an intermittent issue, and has plagued Vaadin apps since Vaadin6, and looks to still be there in Vaadin14. To blame it on the browser cache isn't great. – Midiman Apr 29 '21 at 10:03
0

I was having the same problem. I noticed that switching to HTTPS lead to these errors not occurring. The same site would throw this error when I accessed it via HTTP, but if I went to the site via HTTPS, then the problem did not occur.

Jose Martinez
  • 11,452
  • 7
  • 53
  • 68
  • I just experienced the same. I implemented TLS via Spring Security and made different Spring profiles for for dev and prod. I got the "Cookies disabled" after going back to dev mode without https. – Avec Jan 08 '21 at 13:12