New Calendar Button not working
geva-kf-admin opened this issue ยท 13 comments
With the new(?) Version from Proton Mail Client I see on the right panel a new Button for the Calendar, but it doesn't work with ElectronMail. In the Browser it works fine and open the Calendar.
Following errors in the logfile:
[2023-01-18 19:16:36.360] [error] src\electron-main\web-contents.ts {"level":3,"message":"Access to fetch at 'https:///auth/info' from origin 'webclient://calendar.proton.me' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.","line":0,"sourceId":"webclient://calendar.proton.me/"}
[2023-01-18 19:16:36.375] [error] src\web\browser-window\app_accounts\account-view.component.ts AccountViewComponent webview event {"type":"console-message","level":3,"message":"Access to fetch at 'https:///auth/info' from origin 'webclient://calendar.proton.me' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.","line":0,"sourceId":"webclient://calendar.proton.me/"}
Thanks for the report. I didn't notice this new feature before publishing the 5.1.3 release and so didn't try it in action.
There is no easy fix as they use iframe for embedding the entire calendar web app on the side panel vs mounting calendar-related components into the same page/DOM.
Thanks for the analyze. Maybe in future Releases will it work ๐ ๐ ๐
Any news on this issue?
I tried some ideas in wip-drawer-iframe
branch, but it remains incomplete. I don't know when I try again. Fighting iframes is a sort of boring thing to do. No need to ask for news, you will see some if there are any.
Is this the same reason why Proton Drive doesn't work?
Is this the same reason why Proton Drive doesn't work?
It's not. Drive supposed to work, for long time. Try relogin if it doesn't.
It's not. Drive supposed to work, for long time. Try relogin if it doesn't.
Drive stopped working for me since version v5.1.7 i believe. I hoped it would work after an update which i just did, but still no luck.
I get stuck on the page !Something went wrong and have to relogin to solve it.
edit: seems to be solved now somehow.
The bug occur again with same error message in the log.
It was not fixed, so of course it occurs again. I mean the calendar button issue.
Did you drop that bug or will you fix it ?
I mean the calendar button issue.
Did you drop that bug or will you fix it ?
This issue remains open, so there is a chance for it to get fixed one day. But I'm not ready for another attempt, iframe stuff is a mess to work with. There is still a hope that Proton converts iframe use for calendar embedding to a regular single page application approach, how it's supposed to be these days, so then the issue gets self-resolved.
To reduce confusion, the next release comes with cut out Calendar icon. Already implemented in the wip
branch (the test build shared in #694 (comment)).