Skip to content

[WebProfilerBundle] Profiler is not stateless #50037

Closed
@bigfoot90

Description

@bigfoot90

Symfony version(s) affected

5.4.21 6.2.8

Description

I have a SPA and I'm importing all routes in stateless mode

I'm having the error Session was used while the request was declared stateless beacause Profier is not stateless

How to reproduce

Edit Kernel.php to be stateless

        $routes->import($confDir.'/{routes}/*'.self::CONFIG_EXTS, 'glob')->prefix('/api/')->stateless();
        $routes->import($confDir.'/{routes}/'.$this->environment.'/**/*'.self::CONFIG_EXTS, 'glob')->prefix('/api/')->stateless();
        $routes->import($confDir.'/{routes}'.self::CONFIG_EXTS, 'glob')->prefix('/api/')->stateless();

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions