Skip to content

[Bug]: When deleting a single record or domain name, the error "Error: Invalid CSRF token." will occur. #979

@wxtewx

Description

@wxtewx

Describe the problem

When I go to Home\Forward Zones\domain.com\Edit, click the delete icon to the right of the record I intend to delete, and then click the Yes, delete this record button, the page goes blank. After I click the title in the top-left corner to return to the homepage, the error Error: Invalid CSRF token. appears. The relevant record is not deleted, and no error logs are generated when I check the logs.

Steps to reproduce

  1. Click the delete icon to the right of the record you want to delete.
Image
  1. Click the Yes, delete this record button.
Image
  1. Click the title in the top-left corner of the page.
Image
  1. The error Error: Invalid CSRF token. is displayed.
Image
  1. Click the delete icon to the right of the zone you want to delete.
Image
  1. Click the Yes, delete this zone button.
Image
  1. Click the title in the top-left corner of the page.
Image
  1. The error Error: Invalid CSRF token. is displayed.
Image

Poweradmin version

4.0.5

Database

MariaDB

Additional information (optional)

PHP Version: 8.4.16
Operating System: Debian 13.3
Web Server: Nginx 1.26.3
PowerDNS Version: 5.0.2

I have already tried the methods mentioned in #977 and #971, but the issue still persists.

Metadata

Metadata

Assignees

Labels

dnsDNS ManagementuiUser Interface

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions