KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Help with Pivot and Drilldown #3414

Open TICGAL opened this topic on on Jan 24, 2025 - 2 comments

TICGAL commented on Jan 24, 2025

Hello, I have an issue with the pivot matrix chart. When I move one of the filters, the page reloads, but when sending the information via a POST request, the platform where I am performing the integration expects a CSRF security token, which it doesn’t receive. Would it be possible to add a parameter to that POST request? Another possible solution would be to send the data via a GET request instead; is this possible?

This also happened with Drilldown

TICGAL commented on Jan 29, 2025

Hi, We need an answer to this matter. It is a security issue, and we need to address it. Otherwise, these two relevant features (Drilldown and Pivot Matrix) are useless. Regards,

Sebastian Morales commented on Feb 3, 2025

With PivotMatrix you can add csrf token like this:

        PivotMatrix::create(array(
            ...
            "scope" => [
                "_token" => csrf_token(),
            ], 

With Drilldown here's the way:

    DrillDown::create(array(
        "name"=>"saleDrillDown",
        "global" => [ "_token" => csrf_token() ], 

Pls try these and let us know the result.

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
bug
help needed

Pivot