afterlogic / webmail-lite-8

Open-source webmail script for existing IMAP server
https://afterlogic.org/webmail-lite-8
GNU Affero General Public License v3.0
335 stars 71 forks source link

Cookies are disabled in the browser. Please enable them for this web site and reload the page. #33

Closed landoncrabtree closed 5 years ago

landoncrabtree commented 5 years ago

The popup "Cookies are disabled in the browser. Please enable them for this web site and reload the page." keeps displaying, even though I know for a fact that cookies are enabled on my browser. Usign Google Chrome, and Cookies are enabled in Advanced Settings > Content.

https://i.imgur.com/frGGev5.png The cookies are being created, but no value is being set to them. Once again, though, cookies work everywhere else except for Webmail Lite.

landoncrabtree commented 5 years ago

Tested on other browsers, and on mobile, the issue persists. Definitely isn't an issue with my browser.

afterlogic-support commented 5 years ago

Hello,

Are you on 8.2.3 version? https://afterlogic.com/docs/webmail-lite-8/troubleshooting/detecting-version-used

landoncrabtree commented 5 years ago

I am, yes.

afterlogic-support commented 5 years ago

Would it be possible to get an installation URL so the developers could check it? If you'd rather not post that information here, you can send it to us privately via HelpDesk or email us at support@afterlogic.com.

landoncrabtree commented 5 years ago

https://landon.pw/mail/index.php

afterlogic-support commented 5 years ago

Thank you. We're not sure what's happening there, our guess is it's somehow caused by Cloudflare protection system - possibly, because cookies don't have "secure" flag set.

Developers have provided a fix which enforces setting "secure" flag for cookies. Please backup static/js/app.js file and replace it with a file from the attached archive: app.js.zip

You'll need to enable use of non-minified Javascript code, by setting UseAppMinJs to false in data/settings/config.json file. Be sure to clear browser cache.

Please let us know if this helps you. Thanks!

afterlogic-support commented 5 years ago

Actually, we've just run into identical issue and got "Cookies are disabled in the browser" error message. Upon investigating this, it turned out that cookies aren't assigned correctly when URL ends with /index.php. The installation URL doesn't seem to be there any longer, but most probably, https://landon.pw/mail/ would work correctly. And of course, we'll have this fixed in the next update. Thanks!

ytteroy commented 4 years ago

Hello, I have also faced this problem. This problem occurs only for a few users. Do you have any additional information to fix this error? I'm using Cloudflare.