X-CSRF-Token request header is invalid

Created on 11 January 2023, almost 2 years ago
Updated 26 January 2023, almost 2 years ago

Problem/Motivation

The notification update API used in this module gives "X-CSRF-Token request header is invalid" message with a 403 Forbidden error.
This error does not occur on the local system but occurs on the server.
Can anyone please review if this is a module-related issue or any probable reason for this error is shown?

Steps to reproduce

1. Install and enable this "notificationwidget" module
2. Send a notification
3. Click on the notification bell icon and then click on any received notification
4. Observe the page does not redirect and a error is shown in the console
5. The notification should either redirect to a different page or a 404 page

Screenshots:

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: works as designed

Version

1.5

Component

Code

Created by

🇮🇳India vinaymahale

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India vinaymahale

    This seemed to be an issue from the server side. I moved the project with the module included onto a different server and the issue was not reproducible.
    Thank you for your help @BramDriesen!

    Closing this issue as Closed - works as designed.

  • 🇧🇪Belgium BramDriesen Belgium 🇧🇪

    Great! Glad you got it fixed, and thanks for looping back! :-)

Production build 0.71.5 2024