Skip to content

»CSRF check failed« when writing new email on tab which was open for longer #417

@jancborchardt

Description

@jancborchardt

Encountered this on our cloud.nc installation with the Mail app:

I had a tab open since yesterday. Just opened from suspend and started to write a new mail in the old tab I had open with the Mail app. On sending, I got a showNotification with »CSRF check failed« and the following console log:

POST 
XHR 
https://cloud.[…].com/apps/mail/accounts/22/draft [HTTP/1.1 412 Precondition failed 200ms]
[message] "send" Array [ Object, Object, Object ] mail.min.js:148:14867
[ui] "document:click" Array [ Object ] mail.min.js:148:14867
[ui] "document:click" Array [ Object ] mail.min.js:148:14867

We should make sure that even if you keep tabs open (what people tend to do, especially when they use the app a lot), the app silently reconnects after wake from suspend.
(Related to similar issue in the notes app nextcloud/notes#122)

@nextcloud/mail @nextcloud/javascript

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions